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:
- Access to the Verkada API. Read our Quick Start Guide
- An application equipped with a video player capable of streaming via the HLS protocol (for example HLS.js)
- 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 Code | error_code | Troubleshooting Steps |
|---|---|---|
| 400 | bad_request | Check 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). |
| 401 | unauthorized | Check that a valid, unexpired JWT was submitted in the jwt query parameter. |
| 403 | forbidden | The token does not grant streaming access to this camera, or the Streaming API is not enabled for the organization. |
| 404 | object_not_found | Check that org_id and camera_id are correct and that the camera belongs to the organization. |
| 500 | internal_error | Verkada'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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
200ok
