hermosodocs

authorize_tiktok_ads_spark_post

Apply a TikTok Spark Ads authorization code

Area: SPARK ADS · Ad campaign management. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
advertiserIdstringTikTok advertiser id from list_tiktok_ads_accounts; omit when only one is connected
authCoderequiredstringthe code the post owner generated in the TikTok app. Paste it verbatim — Hermoso handles the + / %2B escaping TikTok warns about.
originalPostAuthCodestringREQUIRED 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.

All 759 Ad campaign management tools · tools.json