entri_ and is scoped to an organization or a specific project.
You can manage tokens from the Entri web app (organization settings), or programmatically through the API token endpoints documented here. Programmatic management is useful for automated credential rotation, onboarding scripts, or CI/CD bootstrap pipelines.
Endpoints
Organization-level tokensCreate a Token
Response:
token field contains the full token value. Copy it now — it will not be shown again.
List Tokens
Returns all active tokens for the organization. The full token value is never returned in list responses:Revoke a Token
Revoking a token immediately invalidates it. Any in-flight requests using the token will fail with401 Unauthorized:
Token Expiration
Tokens can optionally expire. SetexpiresAt to an ISO 8601 datetime when creating a token. After that date, the token is automatically rejected with a 401 Unauthorized response, even if it has not been explicitly revoked.
Tokens without an expiresAt value never expire automatically. Rotate them manually as part of your security hygiene.
Token Rotation
To rotate a token without downtime:1
Create a new token
2
Update your secrets
Update the token value in your CI/CD secrets, environment variables, or secrets manager with the new value.
3
Revoke the old token
Once the new token is in place and working, revoke the old one:
Key Notes
- Give each token a descriptive name that identifies its purpose and the system using it. This makes it easy to understand which token to revoke if one is compromised.
- The
lastUsedAtfield helps identify stale tokens that can be safely revoked. - Use
expiresAtto enforce automatic expiry for short-lived automation credentials.