Skip to main content
GET

Overview

Returns the current state of a stream. The response shape is the same whether the stream is scheduled, live, or finished, which makes it suitable for dashboards and polling loops. Use it to:
  • Track the stream through its lifecycle (scheduled โ†’ setting up โ†’ started โ†’ ended).
  • Read the playback URLs of Camb.ai-hosted outputs (SRT listener, HLS recording).
  • Check per-target delivery state and surface errors.
When polling, a cadence of 5โ€“15 seconds is plenty. Back off once the stream reaches a terminal status (4, 5, or 6).

Reading the response

  • status - the stream lifecycle status: 1 scheduled, 2 setting up, 3 started, 4 ended, 5 interrupted, 6 error.
  • targets[].state - each output progresses scheduled โ†’ active โ†’ completed, or failed on error.
  • targets[].playback_url - set for Camb.ai-hosted outputs; this is where you or your viewers connect.
  • targets[].destination_url - set for push outputs; the endpoint Camb.ai is delivering to.
  • error - populated when status is 6.

Errors

  • 404 - No stream with this ID belongs to your team.
  • 422 - Invalid stream_id.

Authorizations

x-api-key
string
header
required

The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.

Path Parameters

stream_id
integer
required

Identifier returned when the stream was created.

Response

Current state of the stream.

Current state of a stream. The shape is identical whether the stream is scheduled, live, or finished.

stream_id
integer
status
enum<integer>

Lifecycle status.

Available options:
1,
2,
3,
4,
5,
6
source
SourceView ยท object | null

Source connection details.

targets
TargetView ยท object[]

State and URLs of each output.

scheduled_at
string<date-time> | null
started_at
string<date-time> | null
stopped_at
string<date-time> | null
task_id
string | null

Setup task identifier.

error
string | null

Failure description when status is 6 (error).

Last modified on July 24, 2026