Create token

Create a new authentication token for the authenticated account with custom name and expiration duration.

Authentication

Authorizationstring
API Key authentication via header

Request

Token creation request
expiry_durationintegerRequired

Duration in seconds from now until expiration (1 min to 1 year).

namestringRequired

User-friendly name for the JWT token.

token_typestringRequired
Type of token to create.
allowed_cidrslist of stringsOptional

Optional IP CIDR allowlist applied atomically at creation, so the token is never live unrestricted. Empty/omitted = unrestricted. Max 50 entries; same format as PUT /account/tokens/:lookup_id/allowed-cidrs.

Response

Token created successfully
api_tokenobjectOptional
The token metadata
tokenstringOptional
The generated JWT token

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error