Create a standalone session
Authentication
Headers
Request
Session type to create. Only websocket is supported.
WebSocket audio relay configuration. Shared by the ws/start command and
the ws block of POST /v1/sessions.
Response
Session created. Born in the connecting state.
When the session was created, as an RFC 3339 / ISO 8601 UTC string
(e.g. “2025-05-06T12:41:36.000Z”). Storage resolution is one second,
so the millisecond fraction is always .000. Empty string if the
originating timestamp is missing or unparseable.
Current lifecycle state of the session. connecting applies to a
websocket session whose backend WebSocket has not yet connected.
The nature of the session:
phone_in: inbound phone call from a carrierphone_out: outbound phone call placed withdialsip: a registered SIP devicewebrtc: a WebRTC clientwebsocket: a standalone WebSocket session with no phone legunknown: could not be determined
Caller ID in canonical international E.164 format with leading +
(e.g. +972527121102). Empty for websocket sessions (no phone leg).
Called DID in canonical E.164 format with leading + (e.g. +972747713001).
Empty for websocket sessions (no phone leg).