Skip to main content

RealtimeSessionResponse

Type Alias RealtimeSessionResponse 

Source
pub type RealtimeSessionResponse = RealtimeSession;
Expand description

Backwards-compatible alias for RealtimeSession.

Aliased Type§

pub struct RealtimeSessionResponse {
    pub ephemeral_token: String,
    pub url: String,
    pub signed_url: String,
    pub session_id: String,
    pub provider: String,
}

Fields§

§ephemeral_token: String

Ephemeral token for direct WebSocket connection (xAI/OpenAI).

§url: String

WebSocket URL to connect to. For xAI: “wss://api.x.ai/v1/realtime” For ElevenLabs: the signed WebSocket URL (includes auth in URL).

§signed_url: String

Signed URL (alias for url — ElevenLabs returns this field name).

§session_id: String

Session ID for billing (pass to realtime/end on disconnect).

§provider: String

Provider name (e.g. “elevenlabs”, “xai”).