Admin API keys, access tokens, and workload identity federation for enterprise integrations.
Enterprise Authentication
The Enterprise Authentication API provides organization-scoped credentials for service-to-service integrations, automation, and workload identity federation. It complements organization access tokens with long-lived admin API keys, short-lived access tokens, and workload identity providers.
Authentication and authorization
Enterprise auth endpoints require a Clerk JWT and an active organization. Only organization owners and admins can create or revoke admin API keys and workload identity providers.
Base URL
/api/v1/auth
Admin API key endpoints
Method
Path
Description
POST
/api/v1/auth/admin-api-keys
Create an admin API key
GET
/api/v1/auth/admin-api-keys
List admin API keys
DELETE
/api/v1/auth/admin-api-keys/:id
Revoke an admin API key
Access token endpoints
Method
Path
Description
POST
/api/v1/auth/access-tokens
Create an access token
GET
/api/v1/auth/access-tokens
List access tokens
POST
/api/v1/auth/access-tokens/:id/rotate
Rotate an access token
DELETE
/api/v1/auth/access-tokens/:id
Revoke an access token
Workload identity endpoints
Method
Path
Description
POST
/api/v1/auth/workload-identity/providers
Create a workload identity provider
GET
/api/v1/auth/workload-identity/providers
List providers
GET
/api/v1/auth/workload-identity/providers/:id
Get a provider
PATCH
/api/v1/auth/workload-identity/providers/:id
Update a provider
DELETE
/api/v1/auth/workload-identity/providers/:id
Delete a provider
POST
/api/v1/auth/workload-identity/token
Exchange a workload identity assertion for a token
Credential prefixes
Credential
Prefix
Example
Admin API key
allternit_admin_
allternit_admin_xxxxxxxxxxxxxxxx
Access token
allternit_access_
allternit_access_xxxxxxxxxxxxxxxx
Admin API keys
Admin API keys are long-lived credentials scoped to an organization. Only SHA-256 hashes and a 22-character prefix are stored; the plaintext key is returned only on creation.
Access tokens are user-scoped, short-lived credentials. They require an expires_at value in the future and can be rotated to issue a new token while revoking the previous one.