API Reference
Authorization and tokens

Refresh a token (always 40107)

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

TikTok documents no refresh endpoint for Marketing API tokens, which never expire. Mimicr answers this path with code 40107 "Invalid or incorrect refresh token.", the documented error for trying to refresh a long-term Marketing API token.

Authorization

Public route, no token.

Body

application/json
app_idstring

ID of your developer application.

secretstring

Secret of your developer application.

refresh_tokenstring

Refresh token.

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.
codeinteger

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.