Mint a token
1
Open your workspace settings
In the dashboard sidebar, click Settings, then the API tokens tab.
2
Create the token
Click New token. Give it a name you will recognise later. It shows up in the
token list and in your audit log, so
Zapier production beats token 2.3
Grant only the scopes it needs
Tick the scopes this integration actually uses. A backend that only posts events
needs
events:write and nothing else.4
Set an expiry, or do not
Leave the expiry blank for a token that never expires. Anything from 1 to 3650 days
is accepted.
5
Copy it now
The token is shown once. TrackPlay stores only a SHA-256 hash of it, so nobody
(including us) can show it to you again. Lost it? Revoke it and mint another.
Scopes
write-only
Send events to the Custom Events API. Write-only: it
cannot read anything back, which makes it the right token to hand to a third-party
backend.
write-only
Send sales to the Conversions API.
read-only
Read recorded conversions.
read-only
Read analytics and reporting data.
read-only
List and read videos.
write-only
Create, update and delete videos.
write-only
Manage webhook subscriptions and Zapier hooks.
read-only
Read integration configuration.
read-only
Read workspace details.
Send the token
Either header works. Pick one.Base URLs
Events run on their own host because they run at a different volume. Same token, same
scopes.
When auth fails
401: AUTH_REQUIRED
401: AUTH_REQUIRED
No token reached us. Check the header name and that your HTTP client is not
stripping it on redirect.
401: INVALID_TOKEN
401: INVALID_TOKEN
The token is wrong, expired, or revoked. Tokens are matched on an exact hash: a
stray space or newline will land here.
403: INSUFFICIENT_SCOPE
403: INSUFFICIENT_SCOPE
The token is valid but was not granted the scope this endpoint needs. The response
names the scope in
required. Mint a new token with it; you cannot add a scope to an
existing token.Rotating and revoking
Revoke a token from the same Settings → API tokens tab. Revocation is immediate at the source, and takes effect on the events host within 5 minutes as its auth cache expires.The legacy workspace key
Older workspaces have a singletp_ API key with blanket access to everything,
including analytics reads. It still works, and it is deprecated.
Legacy-key responses carry a Deprecation header. Move to scoped tokens when you touch
the integration next.