Subscribe to stream events (NDJSON)
GET/api/v1/live/streams/:stream_id/events
Long-lived NDJSON stream of real-time events for one stream. Each line is a JSON object with an event field:
{"event": "watching", ...}— current stream state snapshot{"event": "break_detected", ...}— new ad boundary found{"event": "scene", ...}— segment analysis complete{"event": "aggregate", ...}— burst aggregation updated{"event": "burst_done", ...}— burst processing finished{"event": "keepalive"}— idle heartbeat (ignore)
The connection closes when the stream transitions to stopped or is deleted.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 500
Successful Response
Missing or invalid API key. Add Authorization: Bearer vuf_live_<keyid>.<secret>.
Key used outside the public API roots (/api/v1, /api/v1.1).
Referenced resource (video / job / ad) not found.
Request body failed validation.
Upstream service error — usually safe to retry.