Skip to main content
POST
/
v1
/
api-keys
Create a new API key
curl --request POST \
  --url https://api.example.com/v1/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Production Integration",
  "description": "API key for production payment processing"
}
'
{
  "audience": "https://api.zuba.com",
  "clientId": "abc123xyz456",
  "clientSecret": "secret_key_here",
  "createdAt": "<string>",
  "domain": "your-tenant.auth0.com",
  "name": "Production Integration",
  "description": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.zuba.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Enter Auth0 JWT token

Body

application/json
name
string
required

Name for the API key

Example:

"Production Integration"

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

Auth0 client ID (use this as the API key)

Example:

"abc123xyz456"

clientSecret
string
required

Client secret (only shown once during creation)

Example:

"secret_key_here"

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