Create Session Token
Create session token for an API-key-authenticated user.
Minting a session token is only doable via an API key (APIUserDep) — a
session JWT (SessionUser) cannot mint a token for another participant.
Authorizations
Body
- Full Mode
- Lite Mode
"FULL"Video encoding settings
Maximum session duration in seconds. Must be <= the configured limit for your subscription tier.
Inline voice / context / voice_settings. Mutually exclusive with voice_agent.
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.
CONVERSATIONAL, PUSH_TO_TALK Optional custom LLM configuration ID
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.
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).