Skip to main content
POST
Create Token

Body

application/json
name
string
required
Required string length: 1 - 100
scopes
string[]
required
Minimum array length: 1
expiry
enum<string>
default:90d
Available options:
30d,
90d,
1y,
never
ip_allowlist
string<ipvanynetwork>[] | null
rate_limit
integer | null
Required range: 1 <= x <= 100000
webhook_enabled
boolean
default:false
webhook_url
string | null

Response

Successful Response

Returned only on creation and rotation. Contains the one-shot secret.

id
integer
required
name
string
required
token_prefix
string
required
token_last4
string
required
scopes
string[]
required
ip_allowlist
string[] | null
required
rate_limit
integer | null
required
expires_at
string<date-time> | null
required
status
enum<string>
required
Available options:
active,
disabled,
revoked,
expired
created_by
string
required
created_at
string<date-time>
required
last_used_at
string<date-time> | null
required
token
string
required
webhook_url
string | null
webhook_enabled
boolean
default:false
webhook_secret
string | null