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.
The client label for the session
Show child attributes
"Cara"
"30fa96d0-26c4-4e55-94a0-517025942e18"
"6bfbe25a-979d-40f3-a92b-5394170af54b"
ANAM_GPT_4O_MINI_V1, ANAM_LLAMA_v3_3_70B_V1, CUSTOMER_CLIENT_V1 "You are a helpful assistant"
600
Successfully started session
Was this page helpful?