Skip to main content
POST
Create Api Key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Human-friendly label for this API key

expires_in_days
integer | null

Optional expiry in days (omit for non-expiring)

Response

Successful Response

Extends APIKeyResponse with the raw token — shown ONCE at creation.

access_count
integer
required
created_at
string
required
expires_at
string | null
required
id
string<uuid>
required
is_active
boolean
required
last_accessed_at
string | null
required
name
string
required
token
string
required

Raw token value — copy it now, it won't be shown again

token_prefix
string
required