Generate a New Access Token

Generates a new Access Token for the client. These tokens are short-lived and should be used to make requests to the API from authenticated clients.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Cartesia-Version"2025-04-16"Required

Request

This endpoint expects an object.
grantsobjectRequired

The permissions to be granted via the token.

expires_inintegerOptional

The number of seconds the token will be valid for since the time of generation. The maximum is 1 hour (3600 seconds).

Response

This endpoint returns an object.
tokenstring

The generated Access Token.