POST
/
api
/
v1
/
sessions
curl --request POST \
  --url https://api.avaturn.live/api/v1/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "avatar_id": "jane_20240829",
  "conversation_engine": {
    "type": "text-echo",
    "tts": {
      "engine": "elevenlabs",
      "voice_id": "<voice-id-here>"
    }
  }
}'
{
  "session_id": "<string>",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Project developer API token

Body

application/json
avatar_id
string
default:jane_20240829

Avatar ID

conversation_engine
object | null

Configures how avatar listens and responds

Response

200
application/json
Successful Response
session_id
string
required

Session ID

token
string
required

Session token for Web SDK