Skip to content

The Stream Object

Complete structure and attributes of a Vobiz audio Stream object.

The Stream object represents an audio stream attached to an active call. It captures the configuration you provided when starting the stream (WebSocket URL, codec, track, bidirectional mode) along with runtime metadata such as status, start time, and end time.

Note: A single call may have multiple concurrent streams. Each stream is identified by a unique stream_id and can be stopped independently.

Attributes

Core Attributes

ParameterTypeDescription
stream_idoptional
stringUnique identifier for the stream. Used in API operations to identify specific streams.
call_uuidoptional
stringThe UUID of the call this stream is attached to.
service_urloptional
stringWebSocket URL (wss:// or ws://) to which Vobiz forwards the forked audio.
audio_trackoptional
stringWhich audio track is being streamed. One of "inbound", "outbound", "both".
bidirectionaloptional
booleanWhether the WebSocket is also allowed to send audio back into the call.
content_typeoptional
stringAudio content type. One of "audio/x-l16", "audio/x-mulaw".
sampling_rateoptional
integerAudio sample rate in Hz. One of 8000, 16000.
stream_timeoutoptional
integerMaximum stream duration in seconds. The stream is automatically stopped when this limit is reached.
status_callback_urloptional
stringURL invoked via HTTP POST when the stream status changes (connected, stopped, timeout, failed).
status_callback_methodoptional
stringHTTP method used to invoke status_callback_url. One of "GET", "POST". Default: "POST".
statusoptional
stringCurrent status of the stream. One of "in-progress", "completed", "failed".
start_timeoptional
stringTimestamp when the stream started (ISO 8601 with timezone).
end_timeoptional
stringTimestamp when the stream ended. Null while the stream is still active.
resource_urioptional
stringRelative URI of this Stream resource.

Example

Example of a Stream object returned by the API:

Stream Object
{
    "api_id": "15b27100-1231-11ee-b875-0242ac110003",
    "call_uuid": "6e558798-499c-4a68-bc77-46f2c53d1f69",
    "stream_id": "2b1b3f8e-4c9a-4f2a-9e2d-7f9d0b1c2a34",
    "service_url": "wss://example.com/audio-stream",
    "audio_track": "inbound",
    "bidirectional": false,
    "content_type": "audio/x-l16",
    "sampling_rate": 8000,
    "stream_timeout": 86400,
    "status_callback_url": "https://example.com/stream-status",
    "status_callback_method": "POST",
    "status": "in-progress",
    "start_time": "2025-11-06 13:49:10+00:00",
    "end_time": null,
    "resource_uri": "/v1/Account/MA_PU0XU668/Call/6e558798-499c-4a68-bc77-46f2c53d1f69/Stream/2b1b3f8e-4c9a-4f2a-9e2d-7f9d0b1c2a34/"
}