API Reference
Authorization and tokens

Authorization page

GET/portal/auth
Base URL: https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.com

The advertiser authorization URL: open it in the browser with your app_id, a state and a registered redirect_uri (/marketing_api/auth takes the same parameters). The page shows the app's permissions, a TikTok for Business user of the sandbox to act as, the ad accounts to grant and the Platform Service Agreement.

Confirm redirects to redirect_uri with auth_code, code (the same value) and state. Cancel redirects with error=access_denied. The code is valid for 1 hour and can be used once. In Mimicr the e-mail verification step is skipped, and with the homologation toggle anyRedirectUri (on by default) any http(s) URL is accepted.

Authorization

Public route, no token.

Query parameters

app_idstringrequired

ID of your developer application.

redirect_uristringrequired

One of the app's advertiser redirect URLs.

statestring

A value of yours, returned unchanged in the redirect.

Responses

200The authorization page (HTML).
string
400Unknown app_id ("App not found") or redirect_uri not registered ("redirect_uri mismatch"), shown as an error page.
string