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.

Headers

X-API-Key
string | null

Cookies

blindsight_session
string | null

Body

application/json

Request to create a new API key.

name
string
required
Required string length: 1 - 255
scopes
string[]
expires_in_days
integer | null
Required range: 1 <= x <= 365

Response

Successful Response

Response when creating an API key - includes the full key (shown only once).

id
integer
required
uuid
string
required
name
string
required
key
string
required
key_preview
string
required
scopes
string[]
required
created_at
string<date-time>
required
expires_at
string<date-time> | null