Creating a key
Choose Create key to open a short wizard. A key belongs to an environment —live or test — so you can keep production and testing credentials separate, and the wizard then walks through:
- Scope — the level the key acts at: organization, workspace, or project. You can only create a key at a level you have access to.
-
Permissions — start from a preset and refine:
- Write — read and change configuration (prompts, routing, providers, ingestion).
- Read — read-only access.
- Ingest — send telemetry and read routing, for collectors and SDKs.
- Custom — pick exactly the permissions you want from the catalog.
- Review — name the key and confirm its scope, permissions, and expiry.
- Reveal — the secret is shown once.
keys:create permission at the chosen scope.
Scoping a key
A key carries a subset of the permission catalog. Grant only what the application needs: a telemetry collector needs ingestion, not the ability to change routing. A key can never be created with permissions beyond what its creator holds.Rotating a key
Rotation issues a replacement key with the same scope, permissions, and expiry, so you can roll the secret without re-granting access. You choose a grace period — immediately, or 1 hour, 24 hours, or 7 days — during which the old secret keeps working, giving you time to deploy the new one before the old one stops. Rotation requireskeys:rotate.
Revoking a key
Revoking a key disables it immediately and permanently — there’s no grace period. Requests presenting a revoked key are rejected. Use rotation, not revocation, when you only need to replace a leaked secret without an outage. Revoking requireskeys:revoke.
Usage and audit
Each key has two views from its row:- Usage — recent call volume over the last 7 days, with a per-key trend.
- Audit — a security log of the key’s lifecycle: created, used, rotated, revoked, and any scope-denied attempts. The log is retained for 13 months and can be exported as CSV.
Next steps
Roles & permissions
The scopes a key can carry.
Audit logs
Track configuration changes across the project.