Two environments, chosen by the key
Each team has two environments that never share data:
The environment comes from the key alone. No request parameter can switch it, and a sandbox key never sees production data, or the other way round.
Creating keys
Owners, admins and developers create keys in Settings → API keys with the team selected, choosing Production or Sandbox when they create one. A key is shown once. Store it as a secret and never put it in browser or mobile code. Each key has scopes. A new key gets every scope except thewebhooks and runs ones, which you tick when a key needs them:
A key without the scope a call needs gets
403.
Rotating and revoking
Rotate gives you a new key with the same name and scopes. The old key keeps working for 24 hours so you can swap it without downtime, then stops. Revoke stops a key on its next request. A key also stops working if the person who created it leaves the team or can no longer manage keys. Rotate it from an account that can.Check which key you are using
GET /v1/team needs no scope and answers with your team and environment: