Skip to main content

Authentication

All Enver API endpoints require authentication. The API supports two authentication methods:

1. API Token (CLI & automation)

Pass your token in the Authorization header:
Tokens start with env_live_ and are scoped to specific operations. Generate them in the dashboard.

Scopes

2. Clerk Session (Web dashboard)

The web dashboard authenticates using Clerk. Session tokens are managed automatically.

Token lifecycle

Create a token

Response:
The rawToken is only shown once. Copy and store it immediately.

Token expiry

Set ttlDays to null for a non-expiring token. Expired tokens return 401 Authentication token has expired.

IP binding

Tokens are bound to the IP address from which they were created. Requests from a different IP return 403 Invalid IP address for this token. See IP Binding for more details.

Error responses