authorize_tiktok_ads_spark_post
Apply a TikTok Spark Ads authorization code
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 |
authCoderequired | 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.
Related tools
list_tiktok_ads_spark_postsList TikTok posts authorised to this ad accountunbind_tiktok_ads_spark_postRemove a post from the authorised Spark Ads listlist_tiktok_ads_identity_postsList the organic TikTok posts under an identity