API Reference
Create a test lead
/open_api/v1.3/page/lead/mock/create/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse this endpoint to create the test lead of an Instant Form, with TikTok's demo values. A form has at most one test lead: delete it before creating another. Creating it fires the LEAD webhooks of the advertiser, which is how you test a subscription.
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.
Body
application/jsonThe source of the lead.
INSTANT_FORMDIRECT_MESSAGERequired when you want to create a test lead 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
The lead data.
Metadata about the lead.
Show child attributes
The source of the lead.
INSTANT_FORMDIRECT_MESSAGEThe lead ID.
Returned only when lead_source is INSTANT_FORM. The page ID of the Instant Form.
The campaign ID.
The campaign name.
The ad group ID.
The ad group name.
The ad ID.
The ad name.
The creation time of the test lead.
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).