Environments
Scopes
Keys are granted scopes that gate what they can do. A request to an endpoint whose scope the key lacks returns403 INSUFFICIENT_SCOPE. Grant the minimum a
key needs.
Account, billing, user-management, RBAC, and AI-builder endpoints can’t be
reached with an API key at all — calling one returns
403 ENDPOINT_NOT_PUBLIC.
Use the dashboard for those.Keeping keys safe
- Restrict a key to known IPs (allow-list) where possible.
- Rotate keys periodically; revoke any that leak from the dashboard.
- Use a sandbox (
tg_test_) key for development.