Skip to main content
POST
Create application 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
required

Human-readable label for the token

Required string length: 1 - 120
expiresAt
string<date-time>

Optional ISO 8601 expiry; omit for a non-expiring token

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$

Response

Newly created token, including its one-time plaintext secret

id
number
required

Application token ID

name
string
required

Human-readable label

tokenPreview
string
required

Non-secret display stub, e.g. voxo_pat_ab12…

expiresAt
string | null
required

ISO 8601 expiry, or null

lastUsedAt
string | null
required

ISO 8601 of last successful use, or null

revokedAt
string | null
required

ISO 8601 revocation time, or null

createdAt
string
required

ISO 8601 creation time

token
string
required

The plaintext token — shown once and never retrievable again