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)
Refresh a token (always 40107)
POST
Base URL: /open_api/v1.3/oauth2/refresh_token/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comTikTok 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/jsonapp_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.