Creating a Token
Create a new token
Click Create token. Give the token a descriptive name that identifies where it will be used (e.g.,
GitHub Actions, Local dev, Staging server). Optionally set an expiry date.entri_.
Token Expiration
When creating a token, you can optionally set anexpiresAt date. After that date, the token is automatically rejected even if it has not been explicitly revoked. Tokens without an expiry date remain valid until revoked.
Use expiring tokens for short-lived automation credentials (e.g., CI/CD jobs, deploy scripts) and non-expiring tokens for long-lived integrations.
Using a token
Pass the token in theX-API-Key header on every request:
With the CLI
With curl
With an environment variable
The CLI also reads theNT3_API_TOKEN environment variable, which takes priority over stored credentials:
Managing Tokens
All tokens are listed on the Settings > API Tokens page. From there you can:- View the token name, creation date, and optional expiry
- See when the token was last used
- Revoke any token to immediately invalidate access
401 Unauthorized responses.
Tokens can also be managed via the API — see the API Tokens reference for programmatic management using endpoints at /api/organizations/:orgId/tokens.
Security best practices
Do not commit tokens to source control. Even in private repositories, tokens should be kept out of code and configuration files that are checked in. Use environment variables or a secrets manager. Store tokens in:- CI/CD secrets (GitHub Actions secrets, GitLab CI variables, etc.)
- A secrets manager (AWS Secrets Manager, HashiCorp Vault, Doppler, etc.)
- Your local shell profile for development (with appropriate file permissions)
Token format
All tokens follow this format:nt3 login — it rejects any value that does not start with entri_.