Skip to main content
POST
Create a service token

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string

The service account to mint the token for; created when it does not exist.

label
string
role_slug
string

The role the service account holds.

expires_at
string<date-time>

RFC 3339 expiry.

scopes
string[]
project_id
string<uuid> | null

Absent pins the token to the caller's current project, null leaves it unpinned, a UUID pins it to that project.

Response

The minted token

id
string<uuid>
required
token
string
required

The secret, returned only this once.

account_id
string<uuid>
required
account_name
string
required
label
string
required
role_slug
string
required
expires_at
string
required
type
string
required