cURL
curl --request POST \ --url https://api.cartesia.ai/access-token \ --header 'Authorization: Bearer <token>' \ --header 'Cartesia-Version: <cartesia-version>' \ --header 'Content-Type: application/json' \ --data ' { "grants": { "tts": true, "stt": true, "agent": true }, "expires_in": 123 } '
{ "token": "<string>" }
Cartesia API key
API version header. Must be set to the API version, e.g. '2025-04-16'.
2024-06-10
2024-11-13
2025-04-16
2026-03-01
"2025-04-16"
The permissions to be granted via the token. Both TTS and STT grants are optional - specify only the capabilities you need.
Show child attributes
The number of seconds the token will be valid for since the time of generation. The maximum is 1 hour (3600 seconds).
The generated Access Token.
Was this page helpful?