Key types
Secret keys — gt_live_
Full server-side keys. Use only from your backend, never in a browser. Gated
by the workspace’s API-v1 entitlement.
Publishable keys — gt_pub_
Client-safe, write-only keys for browser ingest. Origin-pinned and
CORS-enabled, with only the
write:ingest scope. Safe to ship in front-end code.Scopes
Each key is granted a set of scopes. A request needs the scope its endpoint requires, or it returns403 Insufficient scope. A key with the * scope passes any check.
Grant only what a key needs. Other scopes exist for surfaces not yet on the public API (for example
read:revenue, read:health, read:deals).
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.