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
Required string length: 1 - 255
workspace_id
string<uuid>
required
scopes
string[]
expires_in_days
integer | null
Required range: 1 <= x <= 3650

Response

Successful Response

id
string<uuid>
required
workspace_id
string<uuid>
required
name
string
required
key_prefix
string
required
scopes
string[]
required
expires_at
string<date-time> | null
required
created_at
string<date-time>
required
created_by
string | null
required
key
string
required