API Reference
Authorization and tokens

Confirm or cancel the authorization

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

What the page's buttons post (form-encoded). A browser does it for you; scripts can call it directly, or use the control action oauth.authorize.

Authorization

Public route, no token.

Body

application/x-www-form-urlencoded
app_idstringrequired

ID of your developer application.

redirect_uristringrequired

The redirect_uri of the page.

statestring

The state of the page.

user_idstring

core_user_id of the TikTok for Business user who authorizes.

adv_{user_id}string[]

The ad accounts of that user to grant (one field per checked account).

agreementstring

1 when the Platform Service Agreement is accepted (required to confirm).

actionstringrequired

confirm or cancel.

confirmcancel

Responses

302Redirect to redirect_uri: ?auth_code=…&code=…&state=… on confirm, ?state=…&error=access_denied&error_description=… on cancel.
400Unknown app, unregistered redirect_uri or agreement not accepted.
string