API Reference
Download an async report
/open_api/v1.3/report/task/download/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse 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
Authorized access token, sent in this header (not Authorization: Bearer). Marketing API tokens never expire.
Query parameters
Advertiser ID.
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.
Return code. 0 means success; see the return codes appendix for the others.
Return message: OK on success, otherwise the error description.
Returned data.
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.
Return code. 0 means success; see the return codes appendix for the others.
Return message: OK on success, otherwise the error description.
The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).