Create token
Create a new authentication token for the authenticated account with custom name and expiration duration.
An account holds at most a fixed number of active tokens of each kind. Past
that limit the operation returns 400 with error TOKEN_LIMIT_REACHED and
creates no token. Revoke a token of that kind, then call the operation again.
Authentication
Authorizationstring
API Key authentication via header
Request
Token creation request
expiry_duration
Duration in seconds from now until expiration (1 min to 1 year).
name
User-friendly name for the JWT token.
token_type
Type of token to create.
allowed_cidrs
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_token
The token metadata
token
The generated JWT token
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error