API Reference
Get form fields
/open_api/v1.3/lead/field/get/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse this endpoint to get the fields of an Instant Form, or of direct message leads (lead_source DIRECT_MESSAGE, then page_id is "0").
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
The source of the leads.
INSTANT_FORMDIRECT_MESSAGERequired when the leads are under an ad account. Advertiser ID.
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.
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).
Returned data.
Show child attributes
Fields to return, as a JSON array (["ad_id","secondary_status"]). If not set, all fields are returned.
Metadata about the Instant Form or direct message leads.
Show child attributes
The time when the Instant Form was created or when the direct message lead was collected, in the format of YYYY-MM-DD HH:MM:SS (UTC+0 time).
The page ID of the Instant Form.
The page name of the Instant Form.
The URL of the Instant Form.
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).