ads
GET /v1/ads/connect/tiktok/callback
TikTok returns the browser here after the person authorises Zinn® Ads.
Authentication
This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/ads/connect/tiktok/callbackSigned in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Unauthenticated by design: its authority is the signed state (signed for TikTok — a state for any other network is refused). TikTok sends the code as auth_code (code is accepted too); no code, or an expired sign-in, is connect=failed. The token is kept in Vault only: a long-lived advertiser access token, or a refresh token TikTok rotates on each refresh (the driver writes each new one back). Always answers with a redirect to the dashboard.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
state (query) | string | No | — |
auth_code (query) | string | No | — |
code (query) | string | No | — |
error (query) | string | No | — |