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

Optional API key label. Scopes and livemode are derived server-side for the current organization.

label
string | null

Response

API key created. The secret field is revealed exactly once in this response.

object
string
required
Allowed value: "api_key"
id
string
required
createdAt
string
required
livemode
boolean
required
orgId
string
required
label
string | null
required
keyPrefix
string
required
scopes
string[]
required
status
enum<string>
required
Available options:
active,
revoked
lastUsedAt
string | null
required
secret
string
required