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)
Download leads (CSV)
GET
Base URL: /open_api/v1.3/page/lead/task/download/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse 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).