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

Admin API key endpoints

Access token endpoints

Workload identity endpoints

Credential prefixes

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.

Create an admin API key

Request body

Response

Save the key immediately. It cannot be retrieved later.

List admin API keys

Response

Revoke an admin API key

Returns 204 No Content on success.

Access tokens

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.

Create an access token

Response

Save the token immediately. It cannot be retrieved later.

Rotate an access token

The previous token is revoked and a new token is returned.

Workload Identity Federation

Workload Identity Federation lets external identity providers (AWS, Azure, GCP, GitHub, Kubernetes, Okta, SPIFFE) exchange short-lived assertions for Allternit access tokens.

Supported provider types

Create a provider

Response

Exchange a workload identity assertion

Response

The returned access token is valid for one hour.

Scopes

Enterprise credentials are evaluated with scopes such as:
  • api:read — read access to non-vault endpoints
  • api:write — write access to non-vault endpoints
  • vault:read — read access to vault resources
  • vault:write — write access to vault resources
  • * — wildcard access

Authenticate with enterprise credentials

Pass the credential as a Bearer token in the Authorization header:

Request/response fields

Admin API key object

Workload identity provider object

Error codes