Skip to main content
POST
Error

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

Display name for the token

scopes
string[]
required

Permission scopes for the token

resource_ids
string[]

Optional list of resource IDs to restrict the token to

expires_at
string<date-time>

Optional expiration time in RFC3339 format

Response

API token created successfully

token
string

The raw API token (only returned on creation)

id
string
name
string
token_prefix
string

Prefix of the token for identification

expires_at
string<date-time>