API Reference
Reporting

Download an async report

GET/open_api/v1.3/report/task/download/
Base URL: https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.com

Use this endpoint to download the output of a finished task. With CSV_STRING the body is the CSV itself (text/csv), not JSON; with CSV_DOWNLOAD it is data.download_url, valid for 1 hour. A task not finished returns 40201 Task is not ready., a failed one 40200 Task error.

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

advertiser_idstringrequired

Advertiser ID.

task_idstringrequired

The ID of the asynchronous report task.

Responses

200With CSV_STRING, the CSV itself (text/csv); with CSV_DOWNLOAD, the JSON envelope with data.download_url. Errors come as the JSON envelope.
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.

request_idstring

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

501The route or feature is documented by TikTok but outside Mimicr's integration core: code 40014 with HTTP 501.
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).