Skip to main content
POST
Mint an API key for the session user.

Authorizations

Authorization
string
header
required

Session token from POST /auth/login.

Body

application/json
label
string
required
scopes
string[]
required
expires_in_secs
integer<uint64> | null
Required range: x >= 0

Response

The only response that ever carries the raw secret.

The only response that ever carries the raw secret.

api_key_id
string
required
label
string
required
scopes
string[]
required
secret
string
required
expires_at
string<date-time> | null