Skip to main content
POST
Create a new API key for the current user

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-readable label for the API key.

Maximum string length: 64
Example:

"CI pipeline"

expiresAt
object | null

Optional ISO 8601 expiration date. Omit (or null) for a key that never expires.

Example:

"2026-08-19T12:00:00.000Z"

permissions
string
default:read

Scope of the key: 'read' (GET only) or 'read-write' (all methods).

Example:

"read"

Response

201 - undefined

Related topics

Quickstart