API Reference
Leads (Instant Form)

Get a test lead

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

Use this endpoint to get the test lead of an Instant Form. Without one: 40007.

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

Required when the test lead is under an ad account. Advertiser ID.

page_idstring

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.
codenumber

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).

dataobject

Returned data.

Show child attributes
lead_dataobject

The lead data.

meta_dataobject

Metadata about the lead.

Show child attributes
lead_sourcestring

The source of the lead.

INSTANT_FORMDIRECT_MESSAGE
lead_idstring

The lead ID.

page_idstring

Returned only when lead_source is INSTANT_FORM. The page ID of the Instant Form.

campaign_idstring

The campaign ID.

campaign_namestring

The campaign name.

adgroup_idstring

The ad group ID.

adgroup_namestring

The ad group name.

ad_idstring

The ad ID.

ad_namestring

The ad name.

create_timestring

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.
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).