Request a TikTok Marketing API OAuth 2.0 access token and create an ad account

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 a developer app in the TikTok Marketing API portal (business-api.tiktok.com) and obtain the app_id and secret
  2. Redirect the user to the TikTok authorization URL with app_id, state, and redirect_uri parameters to initiate the OAuth 2.0 authorization code flow
  3. Exchange the returned authorization code for an access_token and refresh_token by POSTing to the TikTok Ads API OAuth token endpoint at https://business-api.tiktok.com/open_api/v1.3/oauth2/access_token/
  4. Call the /open_api/v1.3/bc/create/ endpoint to create a Business Center account if one does not exist, then call /open_api/v1.3/advertiser/create/ to create an ad account under the Business Center, providing company name, currency, and timezone
  5. Store the advertiser_id from the ad account creation response; this ID is required as a query parameter (advertiser_id) on all subsequent API calls for campaign management and reporting
  6. Refresh the access_token before expiry using the refresh_token via the token refresh endpoint, since TikTok access tokens have a default 24-hour TTL

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
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
Create a campaign via TikTok Ads API
ads.tiktok.com/marketing_api/docs · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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