API Reference
Leads (Instant Form)

Download leads (CSV)

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

Use this endpoint to download the leads of a finished task. The body is a CSV, not JSON: lead_id, create_time (UTC+0), the ad, ad group, campaign and form ids and names, then one column per form field.

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_idstring

If leads are under an ad account, you must specify the advertiser ID.

task_idstringrequired

Task ID.

Responses

200The CSV of the leads (text/csv). Errors come as the JSON envelope.
string
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).