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)
Get a token (OAuth format)
POST
Base URL: /open_api/v1.3/oauth/token/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comThe same exchange in OAuth format: client_id, client_secret, code and grant_type=authorization_code, as JSON or application/x-www-form-urlencoded. The response is flat (access_token, token_type, advertiser_ids and scope next to code, message and request_id), not wrapped in data. Any other grant_type returns 40108.
Authorization
Public route, no token.
Body
application/jsonclient_idstringrequired
ID of your developer app.
client_secretstringrequired
Secret of your developer app.
codestringrequired
Return code. 0 means success; see the return codes appendix for the others.
grant_typestringrequired
The way of generating the access token.
Responses
200A flat body: the token fields next to code, message and request_id.
codenumber
Return code. 0 means success; see the return codes appendix for the others.
messagestring
Return message: OK on success, otherwise the error description.
request_idstring
The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).