Skip to main content
POST
Create an API token for a service account in the current org

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and token.

Body

application/json

Input

account_id
string
required
duration
string
default:8760h

Duration defaults to one year.

invalidate
boolean
name
string

Name labels the token where it is listed; defaults to the account's identity.

Response

Created

account_id
string
created_at
string
expires_at
string
id
string
name
string
token
string