Skip to main content
POST
Create a User API Key

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
name
string
required
expiry
string<date-time> | null

Expiration date for the API key, null for no expiry

scopes
string[]

Optional scopes assigned to the API key

Maximum array length: 50
projects
string[]

Limit access to these projects

Maximum array length: 50
branches
string[]

Limit access to these branches

Maximum array length: 50

Response

API Key created successfully

key
object
required