API Reference
Authorization and tokensGETAuthorization pagePOSTConfirm or cancel the authorizationPOSTGet a long-term access tokenPOSTGet a token (OAuth format)POSTRevoke a tokenPOSTRefresh a token (always 40107)
User, Business Center and advertisersGETGet the userGETList Business CentersGETList authorized ad accountsGETGet ad account details
Ad groupsPOSTCreate an ad groupPOSTUpdate an ad groupPOSTUpdate ad group statusesPOSTUpdate ad group budgetsGETGet ad groupsGETGet ad group review info
Videos, images and identitiesPOSTUpload a videoGETGet video infoPOSTUpload an imageGETGet image infoPOSTCreate an identityGETGet identities
ReportingGETRun a synchronous reportPOSTCreate an async report taskGETGet an async report taskGETDownload an async reportPOSTCancel an async report taskGETReport file (Mimicr)
Confirm or cancel the authorization
POST
Base URL: /portal/authhttps://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comWhat 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-urlencodedapp_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.
confirmcancelResponses
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