Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to create an API key.

name
string
required
Required string length: 1 - 120
Example:

"CI pipeline"

Response

Successful Response

A newly created API key, including its secret.

This is the only response that ever contains key. It cannot be retrieved afterwards.

id
string<uuid>
required
name
string
required
key_prefix
string
required
key_last4
string
required
created_at
string<date-time>
required
last_used_at
string<date-time> | null
required
created_by
string
required
key
string
required