Verkada API
api.verkada.com · Security
Unified physical security platform API — cameras, access control, alarms, sensors, and environmental monitoring from a single cloud platform. 2M+ API calls/day across hundreds of organizations. Includes webhooks for real-time events.
Authentication
API Key
API key from Verkada Command (admin settings). Pass as x-api-key header. Requires Verkada Command subscription.
Sample Requests
GET
Get all cameras
List all Verkada cameras with name, model, status, and location.
https://api.verkada.com/cameras/v1/devices
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| x-api-key | YOUR_API_KEY |
curl -X GET "https://api.verkada.com/cameras/v1/devices" \ -H "x-api-key: YOUR_API_KEY"
import requests
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(
"https://api.verkada.com/cameras/v1/devices",
headers=headers,
)
print(response.json())const url = 'https://api.verkada.com/cameras/v1/devices';
const response = await fetch(url, {
headers: {
'x-api-key': 'YOUR_API_KEY'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.verkada.com/cameras/v1/devices"
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.verkada.com/cameras/v1/devices")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = "YOUR_API_KEY"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.verkada.com/cameras/v1/devices";
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"x-api-key: YOUR_API_KEY"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
POST
Get live stream token
Get a short-lived token to embed a live camera stream.
https://api.verkada.com/cameras/v1/stream/token
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| x-api-key | YOUR_API_KEY |
| Content-Type | application/json |
Request Body — data you're sending
{
"camera_id": "CAMERA_ID"
}
curl -X POST "https://api.verkada.com/cameras/v1/stream/token" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Content-Type: application/json" \
-d '{"camera_id":"CAMERA_ID"}'import requests
headers = {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"camera_id": "CAMERA_ID"
}
response = requests.post(
"https://api.verkada.com/cameras/v1/stream/token",
headers=headers,
json=data,
)
print(response.json())const url = 'https://api.verkada.com/cameras/v1/stream/token';
const response = await fetch(url, {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"camera_id": "CAMERA_ID"
}),
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"bytes"
"encoding/json"
)
func main() {
targetURL := "https://api.verkada.com/cameras/v1/stream/token"
jsonData, _ := json.Marshal({"camera_id":"CAMERA_ID"})
req, _ := http.NewRequest("POST", targetURL, bytes.NewBuffer(jsonData))
req.Header.Set("x-api-key", "YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.verkada.com/cameras/v1/stream/token")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["x-api-key"] = "YOUR_API_KEY"
req["Content-Type"] = "application/json"
req["Content-Type"] = "application/json"
req.body = "{\"camera_id\":\"CAMERA_ID\"}"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.verkada.com/cameras/v1/stream/token";
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"x-api-key: YOUR_API_KEY",
"Content-Type: application/json",
"Content-Type: application/json"
]),
"content" => json_encode({"camera_id":"CAMERA_ID"}),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Get access events
Get recent door access events from Verkada access control.
https://api.verkada.com/access/v1/access_events?page_size=10
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| x-api-key | YOUR_API_KEY |
curl -X GET "https://api.verkada.com/access/v1/access_events?page_size=10" \ -H "x-api-key: YOUR_API_KEY"
import requests
params = {
"page_size": "10"
}
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(
"https://api.verkada.com/access/v1/access_events",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.verkada.com/access/v1/access_events');
url.searchParams.set('page_size', '10');
const response = await fetch(url, {
headers: {
'x-api-key': 'YOUR_API_KEY'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.verkada.com/access/v1/access_events")
q := baseURL.Query()
q.Set("page_size", "10")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.verkada.com/access/v1/access_events")
uri.query = URI.encode_www_form({
"page_size" => "10"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = "YOUR_API_KEY"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.verkada.com/access/v1/access_events?" . http_build_query([
"page_size" => "10"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"x-api-key: YOUR_API_KEY"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- Requires a Verkada Command subscription — contact verkada.com
- Get API key from Command → Admin → API → Create Key
- Set header: x-api-key: YOUR_KEY
- Separate base paths for cameras (/cameras/v1/), access (/access/v1/), alarms (/alarms/v1/)
- Webhooks: configure at Command → Admin → Webhooks for real-time door/motion/alarm events