API Reference
User, Business Center and advertisers

List authorized ad accounts

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

Use this endpoint to get the ad accounts that the access token is authorized to reach. app_id and secret go in the query. The response has data.list and no page_info. A wrong secret returns 40101.

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.

Query parameters

app_idstringrequired

The App id applied by the developer, which can be found on the Application Management page.

secretstringrequired

The private key of the developer's application, which can be found on the Application Management page.

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.

dataobject

Returned data.

Show child attributes
listobject

Advertiser information list.

Show child attributes
advertiser_idstring

Authorising Advertiser ID.

advertiser_namestring

Authorising Advertiser Name.

request_idstring

The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).