Skip to main content
POST
Create a new API key

Authorizations

Authorization
string
header
required

Enter Auth0 JWT token

Body

application/json
name
string
required

Name for the API key

Maximum string length: 255
Example:

"Production Integration"

access
enum<string>
default:write

Access mode: 'read' mints a read-only key (read:* scopes only); 'write' (default) grants every user-assignable scope.

Available options:
read,
write
description
string

Description of what this API key will be used for

Example:

"API key for production payment processing"

Response

API key created successfully

audience
string
required

API audience/identifier

Example:

"https://api.zuba.com"

clientId
string
required

The Auth0 client ID of this key's application. It identifies the key; it is not sent as the bearer.

Example:

"abc123xyz456"

clientSecret
string
required

Client secret, shown only once during creation. Prefixed zk_live_ in production and zk_test_ in Sandbox. An unprefixed secret is also valid.

Example:

"zk_test_3q2-7wEXAMPLEp9VnL0aTq5cRkXUoZbYhJ4sMdGfWiE1rNtB"

createdAt
string
required

Creation timestamp

domain
string
required

Auth0 domain for token endpoint

Example:

"your-tenant.auth0.com"

name
string
required

Name of the API key

Example:

"Production Integration"

description
string

Description