Creating an API key
Sign in to Detail
Go to app.detail.dev and sign in.
Name the key
Give the key a descriptive name so you can identify it later — for example,
CI pipeline, Local dev, or Staging.Key format
Production API keys follow this format:dtl_live_ for production environments. This prefix makes it easy to detect keys in code reviews and automated secret scanners.
Using API keys
REST API — Pass the key as a Bearer token in theAuthorization header:
auth login command:
Revoking a key
Revocation is immediate. Any request using the revoked key will return a
401 DETAIL_AUTHENTICATION_ERROR response. There is no grace period.
Best practices
- One key per environment — create separate keys for CI, staging, and production so you can rotate or revoke them independently without disrupting other workflows.
- Use descriptive names — name keys after their purpose and owner (e.g.,
GitHub Actions – prod deploy) so you always know where a key is used before revoking it. - Rotate keys periodically — even if a key hasn’t been compromised, rotating it regularly limits the blast radius of an undetected leak.
- Revoke immediately on compromise — if you suspect a key has been exposed, revoke it right away. Create a replacement key and update the relevant environment variables or secrets before resuming work.