Skip to main content
POST
Create Session Token

Authorizations

X-API-KEY
string
header
required

Body

application/json
avatar_id
string<uuid>
required
mode
string
default:FULL
Allowed value: "FULL"
is_sandbox
boolean
default:false
video_settings
VideoSettings · object | null

Video encoding settings

max_session_duration
integer

Maximum session duration in seconds. Must be <= the configured limit for your subscription tier.

avatar_persona
AvatarPersonaSchema · object | null
deprecated

Inline voice / context / voice_settings. Mutually exclusive with voice_agent.

voice_agent
VoiceAgentRef · object | null

Reference a stored voice_agent by id; the server resolves its agent_type and builds the session accordingly (which per-session overrides apply depends on the type — see VoiceAgentRef). An elevenlabs_agent produces a LITE session even on this FULL request. Mutually exclusive with avatar_persona.

interactivity_type
enum<string>
default:CONVERSATIONAL
Available options:
CONVERSATIONAL,
PUSH_TO_TALK
llm_configuration_id
string<uuid>

Optional custom LLM configuration ID

dynamic_variables
Dynamic Variables · object

Values for ${var} placeholders in the context's opening_text and prompt. Required keys are derived from the context; extra keys are ignored. At most 50 entries; keys <= 64 chars; values <= 1000 chars.

memory
MemoryRef · object | null

Attach session memory. Provide prev_session_id to seed/reuse from a prior session, session_memory_id to attach an existing memory, or both (must resolve to the same memory_id).

Response

Successful Response

code
integer
default:100
data
SDKSessionTokenSchema · object | null
message
string