Create token

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

Request

Token creation request
expiry_durationintegerOptional

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

namestringOptional

User-friendly name for the JWT token.

token_typestringOptional
Type of token to create.

Response

Token created successfully
api_tokenobject or null
The token metadata
tokenstring or null
The generated JWT token

Errors