Start a WebSocket media call
Starts an outbound test call and returns a short-lived WebSocket URL for streaming call audio.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Optional caller ID. Omit to start like a browser web call. Uses the agent’s attached number if present, otherwise the web-call placeholder +17088888888.
Optional lead/destination number. Omit to use the same web-call placeholder as when the agent has no attached number.
Agent version to use. Set to draft to test the draft version, pass a version UUID, or omit for the live version.
Codec to use for the WebSocket media stream. l16 is raw big-endian 16-bit PCM at 16 kHz.
Response
Short-lived WebSocket URL with the session id attached. Used directly by the legacy single-node flow; connect-then-bind clients ignore it and bind sid over the base URL connection instead.
Session id for connect-then-bind. Returned when wsMediaServerName is set; send it as { "type": "bind", "sid": "..." } over the WebSocket you already opened to attach your connection to the call. Empty for the legacy single-node flow.