cURL
curl --request POST \ --url https://api.anam.ai/v1/auth/session-token \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientLabel": "<string>", "personaConfig": { "name": "Cara", "avatarId": "30fa96d0-26c4-4e55-94a0-517025942e18", "voiceId": "6bfbe25a-979d-40f3-a92b-5394170af54b", "brainType": "ANAM_GPT_4O_MINI_V1", "systemPrompt": "You are a helpful assistant", "maxSessionLengthSeconds": 600 } }'
Get a session token for authenticating the Anam SDK
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully started session
Was this page helpful?