For the complete documentation index, see llms.txt. This page is also available as Markdown.

Consume Results

View Cloud Streaming video and JSON results, send results to a webhook, and save a snapshot or short clip.

Choose a result path based on what you need to keep. Live video and "Latest Result" help you inspect a running Workflow. Use a Workflow sink to send selected results to your application, or browser capture to save one moment.

Choose a result path

Need
Use
Limit

See the camera

Input preview

Does not run a Workflow or save video.

See annotated output

App player or a live-output watch grant

Requires an image output and an active watch lease.

Inspect current predictions

Latest Result in the app or Agent

Current results, not durable history or every captured frame.

Send selected results elsewhere

Workflow sinks

Only enabled blocks in the running Workflow send data.

Keep a snapshot or short clip

Browser capture to Asset Library

Requires an open, connected browser until saving finishes.

Web App

Open "Deployments", then "Cloud Streaming", and select a source. Select the Workflow run you want to inspect when the source has more than one run.

The input preview shows the camera feed. Workflow output shows the selected image output, such as a visualization with bounding boxes and labels. A Workflow that returns only JSON can still process video, but it has no annotated image output to play.

Open "Latest Result" beside the output to inspect the latest structured result. Image outputs appear as image_ref entries rather than image bytes. The live results buffer is bounded, so a slow viewer or a reconnect can miss results. Use Workflow sinks when you need to retain selected data in your own system.

"Activity" shows recent processing lifecycle changes, not predictions or stored video. See Manage and Monitor.

Running Workflow with annotated video and Latest Result.
Compare input video with annotated output and inspect Latest Result. Displayed pricing is illustrative.

Agent

Ask the Roboflow Agent to show a named camera's live input or the output of a running Workflow. These are different views: watching a camera does not start a Workflow.

For structured output, ask: "Show the latest result from the Workflow I am watching." The Agent reads the watched run's current result; it does not retrieve a history of all predictions.

Inspect without saving

Ask: "Look at the loading dock camera and tell me whether the door is open." For motion, ask: "Inspect a three-second clip from the loading dock camera."

Inspection uses a temporary frame or a short, silent clip from the browser's live input preview. Clips can cover 1–10 seconds and default to three seconds. Ask a follow-up about the same inspection to reuse that exact capture rather than a later moment.

Temporary captures expire after five minutes or when the page closes. They are scoped to the Workspace and conversation, with up to five retained in the browser. Reloading does not restore them. Inspection uses the Agent's normal AI execution and billing; a model that cannot accept video receives sampled frames instead.

Save a snapshot or clip

To keep a temporary inspection, ask: "Save that exact capture to the Asset Library." If it has expired, take a new capture explicitly; the old moment cannot be recovered.

For new media, ask one of the following:

  • "Save a snapshot from the loading dock camera."

  • "Record five seconds from the loading dock camera and save it to the Asset Library."

A snapshot is a JPEG. A saved recording is a silent MP4 with a requested recording window of 1–60 seconds, defaulting to 60 seconds; encoded playback length can vary slightly. Capture uses the quality received by the browser, not the camera's original recording quality.

Keep the conversation open and connected in one browser tab until saving finishes. A recording's "started" response means capture has begun, not that a file exists. Follow its Background Task until it completes and open the returned saved item in the Asset Library.

A lost feed or a browser without MP4 recording support can prevent completion. If capture fails, retrying records a later moment. These browser actions are not a public recording API or continuous recording service.

HTTP API

Use workspace credentials and the required scopes. Watch live output as video, and send predictions to your application with a Workflow sink. Keep returned playback URLs and tokens out of logs, shared links, and source control. A playback grant carries access to the job's output.

Watch live output

After starting a job, wait until it is running, then request a watch grant. Select an image-producing output from the Workflow's interface; a JSON output cannot be played as video.

Watch annotated Workflow output

post

Requests publication for at least 60 seconds on a claimed or running job. Renew at least every 30 seconds while viewing; renewal never shortens the lease. One image output is selected for the whole job, so another viewer's output selection changes every viewer's stream. Request a fresh grant after a new execution; match executionGeneration when provided. This does not create durable frame history. Requires video-inference-job:create. Use a workspace API key or OAuth access token for the workspace in the path. Device-bound and folder-scoped credentials are not accepted.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
workspacestringRequired

Workspace URL slug.

jobIdstring · min: 1 · max: 256Required

Job ID.

Pattern: ^[^/\\]+$
Body
outputstring · min: 1 · max: 256 · nullableOptional

Name of a Workflow image output, without a selector prefix. Null or omission uses the job's default selection.

Example: label_visualization_output
Responses
200

Successful response.

application/json
executionGenerationintegerOptional

Generation associated with this grant, when present on the job. Match it to the current job and request a fresh grant after execution changes.

whepUrlstring · uriRequired

Credentialed WHEP URL for annotated output. Use unchanged; do not log, persist or share it.

rtspsUrlstring · nullableRequired

Credentialed RTSPS URL for the same output, or null when the cell has no public RTSPS listener.

processorAccessTokenstringRequired

Opaque execution-scoped credential. It changes on a new claim. Do not log, persist or share it. Its presence does not establish a public processor polling contract.

post/{workspace}/video-jobs/v1/{jobId}/watch
POST /{workspace}/video-jobs/v1/{jobId}/watch HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "output": "label_visualization_output"
}
{
  "watch": {
    "requestedUntil": 1800000060000,
    "output": "label_visualization_output"
  },
  "executionGeneration": 1,
  "whepUrl": "https://relay.example.invalid/out-JOB_ID-g1/whep?key=JOB_READ_GRANT",
  "rtspsUrl": null,
  "processorAccessToken": "EXECUTION_SCOPED_TOKEN"
}

For a bounded viewing session:

  1. Read the current job and request its watch grant.

  2. Open whepUrl in a WHEP-compatible player. If rtspsUrl is present, an RTSPS client can use that URL instead. A WHEP URL is not a normal video-file URL.

  3. Renew the watch every 30 seconds while viewing. Each grant requests at least 60 seconds of publication.

  4. Continue checking the job. If its execution generation changes, close the old connection, discard its grants, request a new watch grant, and reconnect. Stop reconnecting if the job is stopping or terminal.

  5. At the end of the viewing session, close the player and stop watch renewals.

For example, after obtaining the returned RTSPS URL in a private environment variable, this client views at most one minute:

The process making watch requests must still renew the lease during playback. The optional RTSPS URL can be absent for the job's processing location.

A job publishes one selected image output at a time. Another viewer's watch request can change that selection for all viewers. Coordinate output selection when sharing a job.

Closing a player or letting a watch lease expire does not stop a persistent deployment. Processing and its billing continue. Use explicit Stop or cancellation when you want processing to end.

Send results with a Workflow sink

Add a Webhook Sink to deliver selected JSON results to an HTTPS endpoint you control. The request comes from the cloud processor, so a destination that works on your laptop, such as localhost or a camera's private LAN address, is not a reachable cloud webhook.

For a detection alert:

  1. Filter detections to the classes and confidence levels you need.

  2. Add a Continue If condition so the sink runs only when at least one matching detection remains.

  3. Add a Webhook Sink with method POST, your destination, and a JSON payload containing the filtered results.

  4. Set cooldown_seconds to limit repeated sends. Start with fire_and_forget set to false so you can inspect errors during a controlled test.

  5. Test against a non-production receiver, verify its payload and frequency, then enable the intended sink settings in the Workflow you deploy.

Cooldown is execution-local, not a durable delivery guarantee. Restart or recovery can reset it. Make the receiving application tolerate duplicate events and failed deliveries.

Other destinations include S3 Sink and Slack Notification, subject to each block's configuration and runtime requirements. A cloud worker's local files are not a durable customer download path.

Enabled sinks can send data during tests and previews. Agent previews disable sinks by default unless you ask to enable them; do not assume every entry point does so. Promoting a preview keeps its exact sink settings, including disabled sinks. Promotion does not silently turn notifications or uploads back on.

Last updated

Was this helpful?