Stream Footage (Live or Historical)

Introduction:

Although many Verkada customers access camera footage via Command, we offer a flexible solution for integrating third-party applications with Verkada cameras. The Streaming API lets you stream both live and historical footage from cameras using the HLS (HTTP Live Streaming) protocol. HLS is an open protocol for streaming media over the internet, supported by many video players. This document is a guide for integrating camera footage into third-party applications.

Prerequisites:

Before integrating with the Streaming API, ensure you have the following:

  1. Access to the Verkada API. Read our Quick Start Guide
  2. An application equipped with a video player capable of streaming via the HLS protocol (for example HLS.js)
  3. A backend server capable of communicating with Verkada API servers

Steps to Stream Footage:

Step 1: Acquire a JSON Web Token (JWT) from the Get Streaming Token endpoint.

This endpoint does not take an API key. It takes a valid JWT as the jwt query parameter, which the token endpoint issues against your API key.

Step 2: Assemble the endpoint URL.

Decide whether you are streaming live or historical footage, choose the resolution, and identify the camera and the organization. For live footage, leave start_time and end_time at 0. For historical footage, set both; they may be ISO 8601 timestamps (2025-07-17T21:06:20Z) or epoch seconds, and may span at most one hour.

Set the key path parameter to stream.m3u8 to begin HLS streaming.

Step 3: Call the endpoint.

Most HLS-compatible players will take the returned m3u8 playlist and request the subsequent segments themselves. The segment URLs inside the playlist are relative and already carry every parameter they need, so they resolve back to this endpoint without further work. Alternatively, parse the playlist yourself and fetch the segments directly.

Error Responses:

Errors are returned in the standard v2 error shape, carrying a stable error_code alongside the support code id.

Response Codeerror_codeTroubleshooting Steps
400bad_requestCheck the query parameters. resolution must be low_res or high_res, codec must be hevc or h264, and start_time and end_time must either both be 0 (live) or both be set and no more than an hour apart (historical).
401unauthorizedCheck that a valid, unexpired JWT was submitted in the jwt query parameter.
403forbiddenThe token does not grant streaming access to this camera, or the Streaming API is not enabled for the organization.
404object_not_foundCheck that org_id and camera_id are correct and that the camera belongs to the organization.
500internal_errorVerkada's servers may be experiencing issues, or the requested footage is outside the camera's retention window. Submit a support ticket, quoting the id from the response body, if it fails repeatedly.

For standard HTTP response codes, refer to our General Troubleshooting page.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Query Params
string
required

The unique identifier of the organization.

string
required

The unique identifier of the camera.

string
Defaults to 0

The start time of the video stream on the specified camera.
An ISO 8601 timestamp (2025-07-17T21:06:20Z) or epoch seconds.
For a live footage stream, set to 0.
For a historical footage stream, end_time - start_time must be less than or equal to one hour.

Default: 0

string
Defaults to 0

The end time of the video stream on the specified camera.
An ISO 8601 timestamp (2025-07-17T21:06:20Z) or epoch seconds.
For a live footage stream, set to 0.
For a historical footage stream, end_time - start_time must be less than or equal to one hour.

Default: 0

string
enum
Defaults to hevc

The codec used for the video stream.
Either hevc or h264.

Default: hevc

Allowed:
string
enum
Defaults to low_res

The resolution of the video stream.
For a live video stream, high_res selects the high resolution stream and low_res the low resolution stream.
For historical video streaming, high_res returns a mix of low and high resolution video with high resolution footage prioritized where available, and low_res returns only low resolution footage.

Default: low_res

Allowed:
string
enum
Defaults to stream

The video type.
Reserved for future compatibility; the only accepted value is stream.

Default: stream

Allowed:
string
required

A short-lived token authorizing live or historical streaming from the camera.
Acquire one from the Get Streaming Token endpoint.

string

File name used to fetch the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

List of segments to preload.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The unique identifier of the camera.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The source of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The encryption state of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The location of the cloud backup segment.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The start time of the video segments, for recent historical segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The timestamp of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The offset of the video segments, for recent historical segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

boolean
Defaults to false

Whether a segment should be transcoded to H264.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The location of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The byte range of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The byte range of the init segment.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The initialization vector of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The key name of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The init segment of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

string

The stream identifier of the video segments.
The API user should not have to specify this parameter. It is pre-loaded into the URLs contained in the HLS playlist file.

Response
200

ok

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!