# Hermoso: authorize_tiktok_ads_spark_post · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/authorize_tiktok_ads_spark_post/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / authorize_tiktok_ads_spark_post

# `authorize_tiktok_ads_spark_post`

Apply a TikTok Spark Ads authorization code

Area: SPARK ADS · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Apply an authorization code so this ad account may promote somebody else’s TikTok post. THE CODE CANNOT BE MINTED FROM THE API — only the post’s owner can generate one, in the TikTok app: open the post -> three-dot menu -> Ad settings -> toggle Ad authorization -> choose a duration -> copy the code. Ask them for it; there is no way around this and no endpoint that creates one. Applying a code SPENDS NOTHING and creates nothing that can serve — it only grants permission — so it is deliberately not confirm-gated. If the post is a DUET or STITCH of another post, or mentions one, TikTok requires the ORIGINAL post owner’s code too: pass it as originalPostAuthCode or the call is refused. THE ANSWER IS THE READ-BACK: the reply lists the posts now authorised, because TikTok’s own response body is empty and a bare 200 proves nothing.

## Parameters

Parameter Type Description

`advertiserId` `string` TikTok advertiser id from list_tiktok_ads_accounts; omit when only one is connected

`authCode` required `string` the code the post owner generated in the TikTok app. Paste it verbatim — Hermoso handles the + / %2B escaping TikTok warns about.

`originalPostAuthCode` `string` REQUIRED when the post is a duet/stitch of, or mentions, another post — the ORIGINAL post owner’s code

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/authorize_tiktok_ads_spark_post`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"authorize_tiktok_ads_spark_post","arguments":{"authCode":"<string>"}}}`
**CLI**

`hermoso call authorize_tiktok_ads_spark_post --json '{"authCode":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [list_tiktok_ads_spark_posts](https://hermoso.ai/docs/reference/ads/list_tiktok_ads_spark_posts/) List TikTok posts authorised to this ad account
- [unbind_tiktok_ads_spark_post](https://hermoso.ai/docs/reference/ads/unbind_tiktok_ads_spark_post/) Remove a post from the authorised Spark Ads list
- [list_tiktok_ads_identity_posts](https://hermoso.ai/docs/reference/ads/list_tiktok_ads_identity_posts/) List the organic TikTok posts under an identity

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
