Authorize a third-party app against a TikTok advertiser account with the Ads API OAuth Authorization Code flow

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

Steps

  1. Register your app in the TikTok for Business developer portal to get an app_id and secret — these are distinct from TikTok Login Kit credentials.
  2. Direct the advertiser to the authorization URL (business-api.tiktok.com/portal/auth) with your app_id and redirect_uri so they can grant access to one or more ad accounts.
  3. Capture the auth_code returned on redirect.
  4. Exchange it via POST /open_api/v1.3/oauth2/access_token/ with app_id, secret, and auth_code to receive an access_token and the list of authorized advertiser_ids.
  5. Store the returned advertiser_ids alongside the token, since a single token can cover multiple ad accounts.
  6. Test in Sandbox Mode first — new apps start there, and production review checks the actual OAuth implementation before granting live access.

Known gotchas

Related routes

Authorize and launch a TikTok Spark Ad from creator content using the Identity API and a creator AUTH_CODE
business-api.tiktok.com · 5 steps · unrated
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 the Miele 3rd Party API (OAuth2)
developer.miele.com · 5 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