API Reference
Authorization and tokens

Revoke a token

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

Use this endpoint to revoke a long-term access token. The Access-Token header is required (without it: 40104). The response lists the ad accounts the token can no longer reach, and every Subscription API webhook created with that token stops firing.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Headers

Access-Tokenstringrequired

Authorized access token, sent in this header (not Authorization: Bearer). Marketing API tokens never expire.

Body

application/json
app_idstringrequired

ID of your developer app.

secretstringrequired

Secret of your developer app.

access_tokenstringrequired

The long-term access token that you want to revoke.

Responses

200Response envelope {code, message, request_id, data}. code 0 (message "OK") is success. Validation and business errors also come with HTTP 200 and a non-zero code: check code, not the HTTP status.
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).

dataobject

Returned data.

Show child attributes
app_idstring

ID of your developer app.

advertiser_idsstring[]

The ID list of ad accounts that the token can no longer access.