Authorize and launch a TikTok Spark Ad from creator content using the Identity API and a creator AUTH_CODE

domain: business-api.tiktok.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Have the creator open the target video in the TikTok app, tap Ad settings, toggle Ad authorization on, and choose an authorization duration (7, 30, 60, or 365 days) to generate a Spark Code.
  2. Call the Identity API's POST /identity/create/ endpoint with identity_type set to AUTH_CODE and the creator-provided code to register the identity under the advertiser account.
  3. Alternatively, apply for authorization manually in Ads Manager under Tools > Creative Library > Spark Ads Posts by pasting the video code, if not automating identity creation.
  4. Reference the resulting identity_id when creating the ad creative via the campaign/ad group/ad creation endpoints so the ad runs as the creator's organic post rather than a branded ad-account post.
  5. Track the authorization's expiration (matching the duration the creator granted), since the Spark Ad stops delivering once the grant lapses unless renewed.

Known gotchas

Related routes

Request a TikTok Marketing API OAuth 2.0 access token and create an ad account
business-api.tiktok.com · 6 steps · unrated
Authorize a third-party app against a TikTok advertiser account with the Ads API OAuth Authorization Code flow
business-api.tiktok.com · 6 steps · unrated
Set up a TikTok product catalog and launch catalog-based Video Shopping ads via the Business API
advertising · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans