Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successfully started session
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
},
"sessionOptions": {
"sessionReplay": {
"enableSessionReplay": true
}
}
}'Create a new session token used to initialise the anam client
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
},
"sessionOptions": {
"sessionReplay": {
"enableSessionReplay": true
}
}
}'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successfully started session
Was this page helpful?