API Reference
Authorization and tokens

Get a token (OAuth format)

POST/open_api/v1.3/oauth/token/
Base URL: https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.com

The 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/json
client_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).