v50

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-06-16122182589.7 KB
Call streaming

Start call streaming

Starts streaming the media of the call identified by call_id to the configured destination. Returns the stream_id.

post/v1/calls/{call_id}/streams

Path parameters

call_idstring uuid required

The uuid of the call.

Request body

stream_urlstring uri required

WebSocket URL for call streaming

stream_type'oneway' | 'twoway' required

Specifies the streaming type. Can be either oneway for unidirectional or twoway for bidirectional streaming.

stream_channel'inbound' | 'outbound' | 'both' required

Specifies which audio channel to stream. Use inbound to stream the incoming channel (to Wavix), outbound for the outbound channel (from Wavix), or both to stream both. For bidirectional call streaming, this setting is ignored and the inbound channel is only streamed.

Example request

{
  "stream_url": "wss://examples.com/stream"
}

Response

Returns the created media stream, including its stream_id.

successboolean

Indicates that the request was successful

stream_idstring uuid

Stream ID

Example response

{
  "success": true,
  "stream_id": "123e4567-e89b-12d3-a456-426614174000"
}