Key types
Secret keys: gt_live_
Full server-side keys. Use them only from your backend, never in a browser.
They work on every endpoint their scopes allow. The workspace must have API
v1 access switched on.
Publishable keys: gt_pub_
Client-safe, write-only keys for browser ingest. They are origin-pinned and
CORS-enabled, and they carry only the
write:ingest scope. Safe to ship in
front-end code.POST /events. A publishable key must send a browser Origin header. If you did not set allowed origins when you created the key, the first origin it is used from becomes its only allowed origin.
The survey and NPS endpoints (/surveys, /survey-responses, /nps-responses) accept secret keys only. A publishable key gets 403.
Expiry and rotation
When you create a key you choose how long it lives: 30 days, 90 days, 1 year, or never. To replace a key without downtime, rotate it in Settings > API Keys. Rotation issues a new key with the same name, scopes and key type. The old key keeps working for a grace period you choose, from immediately up to 7 days, and then stops. The new key keeps the old key’s expiry date. To change scopes, create a new key instead.Scopes
Each key is granted a set of scopes. A request needs the scope its endpoint requires, or it returns403 with Insufficient scope. A key with the * scope passes any check.
DELETE /people/{id} is available, but DELETE /people with externalId or email is not. Use DELETE /contacts for delete-by-key.
Keys that were created with the older read:accounts or write:accounts scopes still satisfy read:companies and write:companies.
Grant only what a key needs. The key creation screen also offers presets, such as a read-only key and a key for the Segment destination.
Other scopes
The key creation screen lists more scopes than the REST endpoints above use. They cover the MCP server and surfaces that are not on the REST API yet:- Read:
read:deals,read:activities,read:cortex,read:health,read:revenue,read:flows,read:views,read:plans,read:data,read:identity,read:sync,read:comm,read:portal,read:workflow_ai,read:governance - Write:
write:cortex,write:health,write:flows,write:views,write:data,write:identity,write:workflow_ai - Trace AI:
use:trace_ai - Admin:
admin:governance
Rate limits
Each API key can send 60 requests per minute. The limit is counted in fixed one-minute windows. Past it, requests return429 with the rate_limit_exceeded code until the next window starts. Back off and retry.
The limit applies to the key, not the endpoint. Batch endpoints help you stay under it: POST /events takes up to 1000 events per request, and POST /signals/batch takes up to 1000 signals.
Errors
Every error returns the same envelope: a machine-readablecode, a safe message, and a doc_url.
Branch on
error.code, not the message. The full reference, including what to do for each, is on the Errors page.