# Vigiora API v1 endpoints

Every operation of API v1, generated from the OpenAPI description (https://vigiora.com/openapi.json). Paths are relative to the server's base address (`https://<site>.vigiora.com` or `http://<server-ip>:8080`).

- **Scope** is the API key scope the call needs (`session` = user sessions only, never API keys; `-` = any credential).
- **Roles** are the user roles allowed. **Camera** is the minimum permission on the camera (`viewer` < `operator` < `manager`).
- **Idempotent** says whether `Idempotency-Key` is honoured (`unsupported` = the header is refused).

Since API 1.4.0 (server 1.6.6) this includes sites, rooms, layouts, system status and health, the Guardian log, search and chat, camera analysis, bulk camera updates, external alerts (`POST /alerts`), faces, users and groups, settings, and config export and import.

Since API 1.5.0 (server 1.6.7) it also includes the LAN network tools (scope `network:read`, admins and operators, self-hosted servers only): `POST /network/actions/scan`, `GET /network/scans/{scan_id}`, `GET /network/devices` (filters `vendor`, `has_port`, `unassigned`), `GET /network/lookup?mac=` or `?ip=`, and `POST /cameras/{camera_id}/actions/relocate` (`cameras:write`, with `dry_run`). See https://vigiora.com/docs/developers/network-tools.md.

Since API 1.7.0 (server 1.6.8) it also includes the setup wizard and camera discovery: `GET /setup/diagnostics`, `POST /setup/diagnostics/actions/fix`, `GET`/`PATCH /setup/checklist`, `GET /setup/ai-camera-suggestions`, `POST /cameras/actions/detect` (with lockout protection: 3 refused logins per camera per 30 minutes, then `429 rate_limited` with `details.reason: camera_login_budget`), `POST /cameras/actions/detect-batch`, `GET /cameras/detect-batches/{batch_id}`, `POST /cameras/actions/add-detected`, `GET`/`PATCH /network/auto-scan`, `POST /network/auto-scan/actions/run`, `GET /network/candidates` and `POST /network/candidates/{candidate_id}/actions/dismiss`. A camera's `status` may be `standby`. See https://vigiora.com/docs/developers/api-v1.md.

Since API 1.8.0 (server 1.6.9) it also includes human in the loop for AI agents: `GET /agent-policy` (any credential: `human_in_the_loop`, `source`, `override`, `confirm_operations`), `GET`/`PATCH /settings/agents` (the server setting; admins change it) and `PATCH /api-keys/{key_id}` (a key's `human_in_the_loop`: `inherit`, `on` or `off`; user sessions only). The operations in `confirm_operations` are marked `x-vigiora-confirm` in the OpenAPI description. See https://vigiora.com/docs/developers/human-in-the-loop.md.

Since API 1.9.0 to 1.11.0 (server 1.6.10) it covers almost everything the web app does (156 more operations): alert rules (Guardian, label and smart-motion), every camera setting and the camera's AI services, frames from recordings (`GET /cameras/{camera_id}/frame?at=`), the Guardian entry frame and clip, detection events with the HAL services' reports (`source`, `label` filters; kept 30 days), the Guardian entry's `detections`, sites, groups, layouts, faces, rooms and speakers, the Briefing, conversations, transcripts, AI Live, system, mesh, update and the vigiora-clients fleet. Object recognition: `POST /cameras/{camera_id}/actions/detect-objects`, `POST /images/actions/analyze` (an uploaded image, never stored; `image_base64` for MCP), `GET /object-images/{image_id}` and `include_objects` on analyze; they need the `hal-objects` HAL service (`503 no_detector` without it). Operations whose scope is `session` are for user sessions only and are not MCP tools. See https://vigiora.com/docs/developers/api-v1.md and https://vigiora.com/docs/ai/hal-services.md.

Since API 1.12.0 to 1.14.0 (server 1.6.11) there are no new operations, only new fields: a camera speaker's `client_id` is optional on `POST /outputs` and can be changed (or set to `null`, this server) with `PATCH /outputs/{output_id}`, so the server plays a camera's two-way audio itself; alert rules have `require_detector_confirmation` (default `true`: a rule about people doesn't alert when the camera's person detector watched the clip and saw nobody); Guardian entries have `detector_checked`, `unconfirmed_alerts` and `person_present_seconds`. See https://vigiora.com/docs/developers/api-v1.md.

Since API 1.15.0 to 1.25.0 (server 1.6.13) there are 89 more operations (347 in all) and the scopes `analytics:read`, `analytics:write`, `floorplans:read`, `floorplans:write`, `devices:read`, `devices:write` and `devices:control`: Analytics (`/analytics/lines`, `/analytics/zones`, `/analytics/areas`, `/analytics/counts`, `/analytics/occupancy`, `/analytics/dwell`, `/analytics/heatmap`, `/cameras/{camera_id}/analytics`); room AI mode, room alert rules and the room Guardian feed; deleting, restoring and purging Guardian moments (`/guardian/trash`); the best-frame and clip fields with `recompute-frames`, `recompute-clips` and `/guardian/clips/settings`; signed stream and snapshot links (`stream-url`, `snapshot-url`, served under `/media/`); camera speak; `GET /server`; `GET /alerts/summary`; the Things model (`/thing-capabilities`, `/things`); floor plans (`/floor-plans`, `/cameras/{camera_id}/locations`); and Home Assistant (`/integrations/home-assistant`, including the device bridge). Keys without scopes get none of the new scopes.

Since API 1.26.0 to 1.30.0 (servers 1.6.15 and 1.6.16) there are 36 more operations (383 in all), with no new scopes: Analytics queues, bays, speed, busy hours and flows (`/analytics/queues`, `/analytics/bays`, `/analytics/speed`, `/analytics/busy-hours`, `/analytics/flows`, `/analytics/paths`), Analytics alert rules and their history (`/analytics/alert-rules`, `/analytics/alert-events`), door displays (`/analytics/displays`), Move to DHCP (`/network/devices/actions/move-to-dhcp`, `/network/dhcp-moves/{job_id}`), the MQTT, Telegram and LINE integrations (`/integrations/mqtt`, `/integrations/telegram`, `/integrations/line`), Home Assistant instances (`/integrations/home-assistant/instances`) and `DELETE /shares/{share_id}`.

Since API 1.31.0 to 1.33.1 (server 1.6.17) there are 6 more operations (389 in all), with no new scopes and no new confirm operations: the camera catalogue (`GET /cameras/catalog?q=`, `GET /cameras/catalog/brands`; `catalog` on network devices and detections; `model` on `detect` and `detect-batch`; the failure `no_local_stream`; `camera_catalog_version` and the feature `camera_catalog` on `GET /server`) and floor plans drawn from a description (`POST /sites/{site_id}/floor-plans/describe`, `POST /floor-plans/{floor_plan_id}/actions/refine`, `POST /floor-plans/{floor_plan_id}/layout/actions/undo`, `GET /floor-plans/{floor_plan_id}/layout?format=json|svg`; `FloorPlan.source`; the feature `floor_plan_describe`). Describe and refine use AI credits (`402 insufficient_credits`, `503 ai_unavailable`).

Since API 1.33.2 to 1.35.0 (server 1.6.18) there are 11 more operations (400 in all), with no new scopes and one new confirm operation (`DELETE /views/{view_id}`): AI views (`POST /views/actions/compose` `{prompt}` → the view's `spec` with `cards[]` of `kind` live | floor_plan | alerts | faces | plates | transcript | recordings | people_count | occupancy | queue | parking | heatmap on resolved `monitor_ids`, plus `notes`; `POST /views/{view_id}/actions/refine` `{instruction}`; `GET /views`, `GET /views/{view_id}`, `GET /views/suggestions`, `PATCH /views/{view_id}` `{pinned, title, card_keys}`, `DELETE /views/{view_id}`; `guardian:read`/`guardian:write`, every role, at most 12 cards, charged like a chat); Guardian chat `refs[]` (`token`, `kind` log | det | t, `id`, `camera_id`, `camera_name`, `at`, `has_clip`, `has_frame`) for every sighting the `reply` cites, also on `GET /guardian/conversations/{conversation_id}/messages`; `ai` on `GET /server` (`status` ok | degraded | unavailable, `reason` provider_402 | provider_429 | provider_5xx | …, `since`, `first_failure_at`, `retry_at`, `route` gateway | own_key) with AI operations answering `503 ai_unavailable` `{details: {reason, retry_at}}` while paused (wait for `retry_at`, don't retry in a loop); faces `has_crop`, `bbox`, `GET /faces/{face_id}/crop`, `DELETE /faces/det-<alert id>?not_a_face=true`; transcripts `GET /cameras/{camera_id}/transcript?from&to&limit&cursor` (segments oldest first, `next_cursor`), `POST /cameras/{camera_id}/transcript/actions/translate` `{passages: [{id, text}], to}` (≤ 50 passages, 2000 chars each), `POST /cameras/{camera_id}/transcript/actions/summarize` `{minutes, language}` (empty window → empty summary, no charge); features `ai_view` and `transcript_translate` on `GET /server`.

Since API 1.36.0 to 1.41.0 (server 1.6.19) there are 28 more operations (428 in all), with no new scopes: `POST /cameras/actions/suggest-name` `{camera_id | snapshot_jpeg_base64, site_id?, current_name?, language?}` → `{name, room, position, alternatives, reason, others}` (a "Room – position" name in the style of the other cameras; renames nothing; AI credits) and `unlock: true` on `detect`/`detect-batch` (sends a refused login once more); the three built-in add-on services renamed `hal-video`, `hal-audio`, `hal-live` (old `gemini-*` names accepted as input, answers carry the new ones); Zigbee through the managed Home Assistant (admins, `settings:*`): `GET /integrations/home-assistant` carries `devices`, `devices_pending`, `zigbee`; `POST …/actions/setup-zigbee` (202 job, confirm), `POST …/actions/zigbee-permit-join` `{ieee?}` → `{open, until, seconds_left}` (120 s, confirm), `GET …/zigbee/devices` (`devices[]` with `ieee`, `name`, `manufacturer`, `model`, `lqi`, `available`, `coordinator`, `entities[]`, `exposed`, `auto_exposed`, `hidden`, `can_identify`; `permit`; `bridge_connected`), `POST …/zigbee/devices/{zigbee_device_id}/actions/rename|reconfigure|identify|expose|unexpose|remove` (expose, unexpose and remove confirm; 409 on the coordinator); IoT devices (`devices:read`/`devices:write`, admins and operators): `GET /iot/devices?q&type&source=home_assistant|zigbee&state=online|offline|low_battery&room_id&shared` (paged; `key` = `iot_device_id`, `source`, `online`, `battery`, `low_battery`, `signal`, `types[]`, `headline[]` `{kind, entity_id, value, unit}`, `room_ids`, `managed_room_ids`, `camera_ids`, `shared`), `GET /iot/devices/{iot_device_id}` (+ `entities[]` with `state`, `unit`, `access`, `signal`, `signal_auto`, `signal_override`, `room_ids`, `camera_ids`, `trigger_ids`, `rule_ids`; `floor_plans[]`), `GET …/entities`, `PATCH /iot/devices/{iot_device_id}` `{name?, room_ids?, camera_ids?, mappings?: [{entity_id, signal | null}]}` (confirm), `POST …/actions/forget|expose|unexpose` (confirm), `reconfigure|identify` (harmless), `remove` (admins, confirm), `GET /iot/zigbee` `{available, configured, permit}`; rooms on the plan: `Room.source` manual|plan|virtual, `Room.floor_plan`, `cameras[].managed`, `devices[]`, `managed_devices[]`; `RoomWrite.source` manual|virtual and `device_entity_ids` (≤ 30); `GET /floor-plans/{floor_plan_id}/rooms`, `POST /floor-plans/{floor_plan_id}/actions/sync-rooms` (harmless, idempotent); floor plan items of `kind: device` with `device_key` and `entity_id`; client errors (admins, `settings:*`): `GET /system/client-errors?unresolved&since&q` (paged), `GET /system/client-errors/{client_error_id}` (`message`, `stack`, `component_stack`, `url`, `web_build`, `server_version`, `user_agent`, `user_id`, `count`, `first_seen_at`, `last_seen_at`, `resolved_at`, `resolved_note`), `POST …/{client_error_id}/actions/resolve` `{note}` / `unresolve`, `POST /system/client-errors/actions/resolve-all` `{note}` (all harmless). MCP tool names spell IoT as `io_t` (`list_io_t_devices`).

Since API 1.42.0 to 1.53.0 (server 1.6.20) there are 39 more operations (467 in all) and one new scope, `devices:control`: Bluetooth (`devices:read`/`devices:write`, admins and operators; Linux): `GET /bluetooth` (`available`, `reason`, adapter, scan settings also on `GET /settings` as `bluetooth_*`, `next_scan_at`, counts), `GET /bluetooth/devices` (what each advertised, a `kind`/`label`/`confidence` guess, `first_seen`/`last_seen`/`seen_count`/`new_today`, `random_address`/`address_changes`), `GET /bluetooth/devices/{id}` (+ `report`), `PATCH …/{id}` `{note?, ignored?}`, `POST /bluetooth/actions/scan` (409 `scan_in_progress` / `bluetooth_unavailable`), `GET /bluetooth/scans`; nothing is paired. Camera clocks (`cameras:read`/`cameras:write`, admins and operators): `GET /cameras/{camera_id}/clock` (`status` ok|drift|timezone|no_ntp|unknown, `offset_seconds`, `site_timezone`, `method`; `refresh=true`; a camera behind a Client needs client 1.16.0+; Reolink over its own API), `POST /cameras/{camera_id}/actions/set-clock` (time, zone, NTP), `PATCH /cameras/{camera_id}/clock` `{timezone | null}` (site zone, audited), the add-camera `POST /cameras/actions/check-clock` and `set-clock`; `GET /settings.camera_clock_autofix_enabled` turns automatic background fixing on; `PATCH /clients/{client_id}` `{timezone_override | null}` (admins) for every camera behind a Client. PTZ presets (`cameras:control`): `GET /cameras/{camera_id}/ptz/presets/{preset_token}`, `PATCH …` `{name?, position?: "current"}` (rename or move; Reolink names on the camera, else kept in Vigiora as `name_in_vigiora`), `DELETE …` (move and delete confirm). Device control: `POST /iot/devices/{iot_device_id}/entities/{entity_id}/actions/set` `{values?: {...}, command?}` (new `devices:control` scope, admins and operators, confirm): a light's `on`/`brightness_pct`/`rgb`/`hs`/`color_temp_kelvin`, a switch/siren `on`, a cover `position`, a lock `locked`+`code`, an alarm `mode`+`code`, a number `value`, a select `option`, a notify `message`/`title`, or a `command` of `open|close|stop|press|lock|unlock`; checked against the entity's `control` description (400 with the field). Library (`recordings:read`/`recordings:write`, `clips:share` for links): `GET`/`POST /library/items`, `GET`/`PATCH`/`DELETE /library/items/{item_id}`, `GET …/media` and `…/thumbnail`, `POST /library/uploads`, `GET /library/stats`; `GET`/`POST /library/folders`, `POST /library/folders/actions/move|delete`; `GET`/`POST /library/albums`, `GET`/`PATCH`/`DELETE /library/albums/{album_id}`, `…/actions/add-items|remove-items|reorder`; `POST /library/items/{id}/shares` and `/library/albums/{id}/shares` (public links). The item file and uploads are not MCP tools (media/multipart); move, delete, set-clock, device set, preset move/delete, `scan_bluetooth` and `update_client` are confirm.

## Me

The caller's identity and scopes.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/me` | Who am I | - | admin, operator, viewer | - | false |
| GET | `/api/v1/agent-policy` | Human-in-the-loop policy for AI agents | - | admin, operator, viewer | - | false |
| GET | `/api/v1/server` | Server identity | - | admin, operator, viewer | - | false |

## Cameras

Cameras (called monitors in the web app's internal API), live snapshots and AI switch.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/cameras` | List cameras | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras` | Add a camera | cameras:write | admin, operator | - | true |
| GET | `/api/v1/cameras/{camera_id}` | Get a camera | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}` | Update a camera | cameras:write | admin, operator | manager | false |
| DELETE | `/api/v1/cameras/{camera_id}` | Delete a camera | cameras:write | admin | manager | false |
| POST | `/api/v1/cameras/{camera_id}/actions/enable` | Enable a camera | cameras:write | admin, operator | manager | true |
| POST | `/api/v1/cameras/{camera_id}/actions/disable` | Disable a camera | cameras:write | admin, operator | manager | true |
| POST | `/api/v1/cameras/{camera_id}/actions/enable-ai` | Switch AI on for a camera | cameras:write | admin, operator | manager | true |
| POST | `/api/v1/cameras/{camera_id}/actions/disable-ai` | Switch AI off for a camera | cameras:write | admin, operator | manager | true |
| POST | `/api/v1/cameras/actions/bulk-update` | Change several cameras at once | cameras:write | admin, operator | manager | true |
| POST | `/api/v1/cameras/actions/reorder` | Reorder the cameras | cameras:write | admin, operator | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/actions/transcribe-recordings` | Recording transcription progress | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/detect-objects` | Find objects in a camera frame | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/object-images/{image_id}` | Annotated object recognition image | cameras:read | admin, operator, viewer | - | false |
| GET | `/api/v1/cameras/{camera_id}/snapshot` | Live snapshot | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/panorama` | A camera's panorama | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/panorama` | Capture a panorama | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/panorama/image` | A camera's panorama picture | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/storage` | Disk the camera's recordings take | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/relocate` | Move a camera to its MAC's current address | cameras:write | admin, operator | operator | true |
| POST | `/api/v1/cameras/actions/suggest-name` | Name a camera from its picture | cameras:write | admin, operator | - | true |
| POST | `/api/v1/cameras/actions/detect` | Detect a camera's streams | cameras:write | admin, operator | - | false |
| POST | `/api/v1/cameras/actions/detect-batch` | Detect several cameras with one login | cameras:write | admin, operator | - | false |
| GET | `/api/v1/cameras/detect-batches/{batch_id}` | Get a camera detection batch | cameras:write | admin, operator | - | false |
| POST | `/api/v1/cameras/actions/add-detected` | Add detected cameras | cameras:write | admin, operator | - | false |
| GET | `/api/v1/cameras/available-streams` | List streams vigiora-clients offer | cameras:read | admin, operator | - | false |
| GET | `/api/v1/cameras/catalog` | Search the camera catalogue | cameras:read | admin, operator | - | false |
| GET | `/api/v1/cameras/catalog/brands` | List the camera catalogue's brands | cameras:read | admin, operator | - | false |
| GET | `/api/v1/cameras/{camera_id}/hardware-id` | Get a camera's hardware id | cameras:read | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/ai-services` | List a camera's AI services | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/ai-services/{ai_service_id}/actions/enable` | Switch an AI service on for a camera | cameras:write | admin, operator | manager | true |
| POST | `/api/v1/cameras/{camera_id}/ai-services/{ai_service_id}/actions/disable` | Switch an AI service off for a camera | cameras:write | admin, operator | manager | true |
| PATCH | `/api/v1/cameras/{camera_id}/ai-services/{ai_service_id}` | Change a camera's AI service settings | cameras:write | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/reference-frame` | Get a camera's reference frame | cameras:read | admin, operator, viewer | viewer | false |
| DELETE | `/api/v1/cameras/{camera_id}/reference-frame` | Delete a reference frame | cameras:write | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/reference-frame/actions/capture` | Capture a reference frame | cameras:write | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/actions/read-qr` | Read QR codes now | alerts:write | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/objects` | Get a camera's current object counts | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/pipeline` | Get a camera's stream pipeline health | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/audio-status` | Get a camera's audio capture health | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/audio-level` | Measure a camera's audio level | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/repush` | Re-send a microphone to its client | cameras:write | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/privacy-masks` | List a camera's privacy masks | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/privacy-masks` | Add a privacy mask to a camera | cameras:write | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/privacy-masks/{mask_id}` | Get a privacy mask | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/privacy-masks/{mask_id}` | Rename or reshape a privacy mask | cameras:write | admin, operator | manager | false |
| DELETE | `/api/v1/cameras/{camera_id}/privacy-masks/{mask_id}` | Remove a privacy mask | cameras:write | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/motion-zones` | List a camera's motion zones | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/motion-zones` | Add a motion zone to a camera | cameras:write | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/motion-zones/{zone_id}` | Get a motion zone | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/motion-zones/{zone_id}` | Rename or reshape a motion zone | cameras:write | admin, operator | manager | false |
| DELETE | `/api/v1/cameras/{camera_id}/motion-zones/{zone_id}` | Remove a motion zone | cameras:write | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/motion-zone-settings` | Get a camera's motion zone mode | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/motion-zone-settings` | Set a camera's motion zone mode | cameras:write | admin, operator | manager | false |
| GET | `/api/v1/cameras/{camera_id}/clock` | Get a camera's clock check | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/clock` | Set the time zone a camera's clock should be in | cameras:write | admin, operator | manager | false |
| POST | `/api/v1/cameras/{camera_id}/actions/set-clock` | Set a camera's clock to the server's | cameras:write | admin, operator | manager | false |
| POST | `/api/v1/cameras/actions/check-clock` | Check the clock of a camera being added | cameras:write | admin, operator | - | false |
| POST | `/api/v1/cameras/actions/set-clock` | Set the clock of a camera being added | cameras:write | admin, operator | - | false |
| POST | `/api/v1/cameras/{camera_id}/actions/siren` | Sound a camera's siren | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/actions/stop-siren` | Switch a camera's siren off | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/check-speaker` | Check a camera's speaker now | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/actions/stream-url` | Live video link | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/snapshot-url` | Snapshot link | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/speak` | Speak through a camera | cameras:control | admin, operator | operator | false |

## PTZ

Pan/tilt/zoom control. Every move is bounded in time; the server stops the camera at the end.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| POST | `/api/v1/cameras/{camera_id}/ptz/actions/move` | Move the camera | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/ptz/actions/stop` | Stop the camera | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/actions/stop` | Stop a robot camera | cameras:control | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/robot/light` | Headlight of a robot camera | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/robot/actions/light` | Switch a robot camera's headlight | cameras:control | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/robot/wifi-motion` | Wi-Fi movement sensed by a robot camera | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/robot/wifi-motion` | Switch the robot's Wi-Fi movement sensor | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/robot/actions/camera` | Switch a robot camera's picture on or off | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/actions/sense` | Scan the room with a robot camera | cameras:control | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/robot/bluetooth` | Bluetooth of a robot camera | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/robot/actions/bluetooth-scan` | Scan Bluetooth with a robot camera | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/actions/find-keyboards` | Find Bluetooth MIDI keyboards with a robot camera | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/actions/play-melody` | Play a melody on a Bluetooth keyboard with a robot camera | cameras:control | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/robot/jobs/{job_id}` | A robot's Bluetooth job | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/robot/patrol` | AI patrol status of a robot camera | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/robot/patrol/actions/start` | Start an AI patrol of a robot camera | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/patrol/actions/stop` | Stop an AI patrol | cameras:control | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/ptz/presets` | List PTZ presets | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/presets` | Save a PTZ preset | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/ptz/presets/{preset_token}` | Get a PTZ preset | cameras:control | admin, operator | operator | false |
| PATCH | `/api/v1/cameras/{camera_id}/ptz/presets/{preset_token}` | Rename or move a PTZ preset | cameras:control | admin, operator | operator | false |
| DELETE | `/api/v1/cameras/{camera_id}/ptz/presets/{preset_token}` | Delete a PTZ preset | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/ptz/patrols/active` | Running patrols | cameras:read | admin, operator, viewer | - | false |
| GET | `/api/v1/cameras/{camera_id}/ptz/patrols` | List a camera's patrols | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrols` | Create a patrol | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/ptz/patrols/{patrol_id}` | Get a patrol | cameras:control | admin, operator | operator | false |
| PATCH | `/api/v1/cameras/{camera_id}/ptz/patrols/{patrol_id}` | Update a patrol | cameras:control | admin, operator | operator | false |
| DELETE | `/api/v1/cameras/{camera_id}/ptz/patrols/{patrol_id}` | Delete a patrol | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/ptz/patrol` | What the camera's patrol is doing | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrol/actions/start` | Start a patrol | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrol/actions/stop` | Stop the patrol | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrol/actions/pause` | Pause the patrol | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrol/actions/resume` | Resume the patrol | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrol-scans` | Set a patrol up automatically | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/ptz/patrol-scans/{scan_id}` | Automatic patrol setup progress | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/ptz/patrol-scans/{scan_id}/pictures/{picture_id}` | A picture from the automatic setup | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrol-scans/{scan_id}/actions/accept` | Save the proposed patrol | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/patrol-scans/{scan_id}/actions/cancel` | Cancel the automatic setup | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/ptz/presets/{preset_token}/actions/goto` | Go to a PTZ preset | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/ptz/actions/probe` | Detect PTZ again | cameras:write | admin, operator | manager | false |
| POST | `/api/v1/rooms/{room_id}/actions/move-ptz` | Move a room camera | cameras:control | admin, operator | operator | false |

## Robot navigation

API 1.129.0. A robot camera remembers places (room level) and drives to a named one, or home, with the Robot navigation add-on (hal-robotnav, a GPU runner). Paths sit under /cameras/{camera_id}/robot.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/cameras/{camera_id}/robot/nav` | Robot navigation status | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/robot/nav/actions/stop` | Stop robot navigation | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/nav/actions/return-home` | Send the robot home | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/nav/learn/actions/start` | Start learning the home | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/nav/learn/actions/stop` | Stop learning | cameras:control | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/robot/nav/map` | Export the robot's place memory | cameras:read | admin, operator | operator | false |
| DELETE | `/api/v1/cameras/{camera_id}/robot/nav/map` | Forget everything the robot learned | cameras:write | admin | manager | false |
| GET | `/api/v1/cameras/{camera_id}/robot/nav/keyframes/{keyframe_id}/image` | A learned view's picture | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/robot/nav/runs` | Robot navigation history | cameras:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/robot/nav/settings` | Robot navigation settings | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/robot/nav/settings` | Change robot navigation settings | cameras:write | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/robot/places` | The robot's places | cameras:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/robot/places` | Save the robot's current spot as a place | cameras:control | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/robot/places/{place_id}` | A robot place | cameras:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/robot/places/{place_id}` | Name or change a robot place | cameras:write | admin, operator | operator | false |
| DELETE | `/api/v1/cameras/{camera_id}/robot/places/{place_id}` | Delete a robot place | cameras:write | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/robot/places/{place_id}/actions/goto` | Send the robot to a place | cameras:control | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/robot/places/{place_id}/actions/relocalise` | Tell the robot where it is | cameras:control | admin, operator | operator | true |

## Alerts

Detections and alerts. `is_alert` marks a label promoted by the camera's alert rules.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/timeline/marks` | List what happened on cameras in a time range, folded for a timeline | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/recordings/events` | Find recorded events (the Recordings page search) | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/recordings/cards/actions/acknowledge` | Mark whole cards seen | alerts:write | admin, operator, viewer | operator | true |
| POST | `/api/v1/recordings/cards/actions/delete` | Delete whole cards | alerts:write | admin, operator | operator | false |
| POST | `/api/v1/recordings/cards/actions/save` | Save whole cards to the media library | recordings:write | admin, operator | viewer | false |
| GET | `/api/v1/qr-codes` | List QR code reads | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/alerts` | List alerts | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/alerts` | Report an alert | alerts:write | admin, operator | operator | true |
| POST | `/api/v1/alerts/actions/acknowledge` | Acknowledge alerts in bulk | alerts:write | admin, operator, viewer | operator | true |
| GET | `/api/v1/alerts/{alert_id}` | Get an alert | alerts:read | admin, operator, viewer | viewer | false |
| DELETE | `/api/v1/alerts/{alert_id}` | Delete an alert | alerts:write | admin, operator | operator | false |
| GET | `/api/v1/alerts/{alert_id}/snapshot` | Alert snapshot | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/alerts/{alert_id}/actions/acknowledge` | Acknowledge an alert | alerts:write | admin, operator, viewer | operator | true |
| POST | `/api/v1/alerts/{alert_id}/actions/unacknowledge` | Reopen an alert | alerts:write | admin, operator, viewer | operator | true |
| GET | `/api/v1/alert-speaker/settings` | Camera speaker alert settings | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/alert-speaker/settings` | Change camera speaker alert settings | settings:write | admin | - | false |
| GET | `/api/v1/alert-speaker/cameras` | Cameras with a speaker | cameras:read | admin, operator | - | false |
| POST | `/api/v1/alert-speaker/actions/test` | Test a camera speaker | cameras:control | admin, operator | - | false |
| GET | `/api/v1/alert-speaker/plays` | Camera speaker plays | alerts:read | admin, operator, viewer | - | false |
| GET | `/api/v1/sounds/active` | Sounds playing now | alerts:read | admin, operator, viewer | - | false |
| POST | `/api/v1/sounds/actions/stop-all` | Stop all sounds | alerts:read | admin, operator, viewer | - | false |
| POST | `/api/v1/sounds/{sound_id}/actions/dismiss` | Dismiss a siren that could not be switched off | cameras:control | admin, operator | - | false |
| GET | `/api/v1/cameras/{camera_id}/detection-events` | List a camera's detection events | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/detection-tracks` | List a camera's object tracks | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/detection-boxes` | List the boxes around a camera's detected objects in a time window | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/alerts/{alert_id}/recording` | Find the recording of an alert | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/counts` | List people counts | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/counts/latest` | Get the latest people counts | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/motion` | List motion levels | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/motion/latest` | Get the latest motion levels | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/alerts/summary` | Unacknowledged alert counts | alerts:read | admin, operator, viewer | - | false |

## Analytics

People and vehicle counts, occupancy, dwell and heatmaps from the Vigiora Analytics add-on. API 1.30.0 adds queue zones and their waits (`/analytics/queues`), the busy hours of the week, crossing speeds on calibrated cameras (an estimate), paths and flows, parking bays (zones of kind `bay`, `/analytics/bays`, `bay.occupied` and `bay.freed` events), analytics alert rules with their firings, and door displays (a public page showing whether an area has room; its token is shown once). Zones gain `kind`, `queue_min_wait_sec`, `reserved_schedule` and `max_stay_min`, cameras a `calibration`, areas `open_hours`, and occupancy the source `bays`.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/analytics/areas` | List analytics areas | analytics:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/analytics/areas` | Create an analytics area | analytics:write | admin, operator | operator | true |
| PATCH | `/api/v1/analytics/areas/{analytics_area_id}` | Update an analytics area | analytics:write | admin, operator | operator | false |
| DELETE | `/api/v1/analytics/areas/{analytics_area_id}` | Delete an analytics area | analytics:write | admin, operator | operator | false |
| POST | `/api/v1/analytics/areas/{analytics_area_id}/actions/set-occupancy` | Correct an area's occupancy | analytics:write | admin, operator | operator | false |
| GET | `/api/v1/analytics/lines` | List counting lines | analytics:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/analytics/lines` | Create a counting line | analytics:write | admin, operator | operator | true |
| PATCH | `/api/v1/analytics/lines/{analytics_line_id}` | Update a counting line | analytics:write | admin, operator | operator | false |
| DELETE | `/api/v1/analytics/lines/{analytics_line_id}` | Delete a counting line | analytics:write | admin, operator | operator | false |
| GET | `/api/v1/analytics/zones` | List analytics zones | analytics:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/analytics/zones` | Create an analytics zone | analytics:write | admin, operator | operator | true |
| PATCH | `/api/v1/analytics/zones/{analytics_zone_id}` | Update an analytics zone | analytics:write | admin, operator | operator | false |
| DELETE | `/api/v1/analytics/zones/{analytics_zone_id}` | Delete an analytics zone | analytics:write | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/analytics` | Get a camera's analytics settings | analytics:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/cameras/{camera_id}/analytics` | Update a camera's analytics settings | analytics:write | admin, operator | operator | false |
| GET | `/api/v1/analytics/counts` | Count people or vehicles in and out | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/occupancy` | Get how many are in each area now | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/dwell` | Get how long people or vehicles stay in zones | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/heatmap` | Get a camera's heatmap | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/queues` | Get queue waits | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/busy-hours` | Get the busiest hours of the week | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/speed` | Get crossing speeds | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/paths` | Get the paths people or vehicles took | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/flows` | Get where people or vehicles went next | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/bays` | Get parking bays | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/alert-rules` | List analytics alert rules | analytics:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/analytics/alert-rules` | Create an analytics alert rule | analytics:write | admin, operator | operator | true |
| PATCH | `/api/v1/analytics/alert-rules/{analytics_alert_rule_id}` | Update an analytics alert rule | analytics:write | admin, operator | operator | false |
| DELETE | `/api/v1/analytics/alert-rules/{analytics_alert_rule_id}` | Delete an analytics alert rule | analytics:write | admin, operator | operator | false |
| GET | `/api/v1/analytics/alert-events` | List analytics alert firings | analytics:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/analytics/displays` | List an area's door displays | analytics:read | admin, operator | operator | false |
| POST | `/api/v1/analytics/displays` | Create a door display | analytics:write | admin, operator | operator | unsupported |
| DELETE | `/api/v1/analytics/displays/{analytics_display_id}` | Revoke a door display | analytics:write | admin, operator | operator | false |

## Floor plans

Floor plans per site with the cameras, speakers, rooms and analytics areas placed on them, their live state and plain-language descriptions of where each camera is. Anyone who can see a site sees its plans (items they cannot see left out); editing needs the admin role, or the admin or operator role with manager level on the site.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/floor-plan-sites` | List the sites floor plans can be added to | floorplans:read | admin, operator, viewer | - | false |
| GET | `/api/v1/floor-plans` | List floor plans | floorplans:read | admin, operator, viewer | - | false |
| POST | `/api/v1/floor-plans` | Upload a floor plan | floorplans:write | admin, operator | - | true |
| GET | `/api/v1/floor-plans/blocks` | The block library of the floor-plan editor | floorplans:read | admin, operator, viewer | - | false |
| GET | `/api/v1/floor-plans/{floor_plan_id}` | Get a floor plan with its description | floorplans:read | admin, operator, viewer | - | false |
| PATCH | `/api/v1/floor-plans/{floor_plan_id}` | Update a floor plan | floorplans:write | admin, operator | - | false |
| DELETE | `/api/v1/floor-plans/{floor_plan_id}` | Delete a floor plan | floorplans:write | admin, operator | - | false |
| GET | `/api/v1/floor-plans/{floor_plan_id}/image` | Floor plan image | floorplans:read | admin, operator, viewer | - | false |
| GET | `/api/v1/floor-plans/{floor_plan_id}/items` | List what is placed on a floor plan | floorplans:read | admin, operator, viewer | - | false |
| POST | `/api/v1/floor-plans/{floor_plan_id}/items/actions/replace` | Replace what is placed on a floor plan | floorplans:write | admin, operator | - | false |
| GET | `/api/v1/floor-plans/{floor_plan_id}/live` | Live state of a floor plan | floorplans:read | admin, operator, viewer | - | false |
| GET | `/api/v1/floor-plans/{floor_plan_id}/rooms` | Rooms drawn on a floor plan | floorplans:read | admin, operator, viewer | - | false |
| POST | `/api/v1/floor-plans/{floor_plan_id}/actions/sync-rooms` | Sync the rooms of a floor plan | floorplans:write | admin, operator | - | false |
| POST | `/api/v1/sites/{site_id}/floor-plans/describe` | Draw a floor plan from a description | floorplans:write | admin, operator | - | true |
| POST | `/api/v1/sites/{site_id}/floor-plans/scan` | Build a floor plan by scanning the cameras | floorplans:write | admin, operator | - | true |
| POST | `/api/v1/sites/{site_id}/floor-plans/walkthroughs/sessions` | Start a walk-through recording session | floorplans:write | admin, operator | - | unsupported |
| GET | `/api/v1/sites/{site_id}/floor-plans/walkthroughs` | List the site's walk-throughs | floorplans:read | admin, operator | - | false |
| POST | `/api/v1/sites/{site_id}/floor-plans/walkthroughs` | Build a floor plan from a walk-through video | floorplans:write | admin, operator | - | false |
| GET | `/api/v1/floor-plans/walkthroughs/{walkthrough_id}` | Get a walk-through job | floorplans:read | admin, operator | - | false |
| DELETE | `/api/v1/floor-plans/walkthroughs/{walkthrough_id}` | Delete a walk-through | floorplans:write | admin, operator | - | false |
| GET | `/api/v1/floor-plans/walkthroughs/{walkthrough_id}/video` | Walk-through video | floorplans:read | admin, operator | - | false |
| POST | `/api/v1/floor-plans/walkthroughs/{walkthrough_id}/actions/rerun` | Run a walk-through again | floorplans:write | admin, operator | - | false |
| POST | `/api/v1/sites/{site_id}/floor-plans/walkthroughs/uploads` | Open a chunked walk-through upload | floorplans:write | admin, operator | - | false |
| POST | `/api/v1/sites/{site_id}/floor-plans/walkthroughs/uploads/{upload_id}/actions/append` | Send one chunk of the video | floorplans:write | admin, operator | - | false |
| POST | `/api/v1/sites/{site_id}/floor-plans/walkthroughs/uploads/{upload_id}/actions/finish` | Join the chunks and build the plan | floorplans:write | admin, operator | - | false |
| POST | `/api/v1/floor-plans/{floor_plan_id}/actions/refine` | Change a described floor plan | floorplans:write | admin, operator | - | true |
| GET | `/api/v1/floor-plans/{floor_plan_id}/layout` | The layout a floor plan was drawn from | floorplans:read | admin, operator, viewer | - | false |
| POST | `/api/v1/floor-plans/{floor_plan_id}/layout/actions/undo` | Undo the last change of a described floor plan | floorplans:write | admin, operator | - | false |
| GET | `/api/v1/cameras/{camera_id}/locations` | Where a camera is on the floor plans | floorplans:read | admin, operator, viewer | viewer | false |

## Views

AI views (API 1.34.0): the user says what they want to check ("entrance and driveway live, plus today's alerts") and the AI composes a view: cards (live video, alerts, people counts, heatmaps, occupancy, queues, parking, a floor plan, transcripts, recordings, faces, plates) on the cameras it resolves from the request, in a grid. The server gives the model a catalogue of what the caller can see, matches the names it answers with, drops what a camera cannot show and caps the cards at 12. Views are per user: recent ones are kept (the 30 last opened), pinned ones for good.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| POST | `/api/v1/views/actions/compose` | Compose an AI view | guardian:write | admin, operator, viewer | - | true |
| GET | `/api/v1/views` | List AI views | guardian:read | admin, operator, viewer | - | false |
| GET | `/api/v1/views/suggestions` | Example requests for an AI view | guardian:read | admin, operator, viewer | - | false |
| GET | `/api/v1/views/{view_id}` | Get an AI view | guardian:read | admin, operator, viewer | - | false |
| PATCH | `/api/v1/views/{view_id}` | Pin, rename or trim an AI view | guardian:write | admin, operator, viewer | - | false |
| DELETE | `/api/v1/views/{view_id}` | Delete an AI view | guardian:write | admin, operator, viewer | - | false |
| POST | `/api/v1/views/{view_id}/actions/refine` | Change an AI view | guardian:write | admin, operator, viewer | - | true |

## Faces

Recognised faces (enrolled and pending) and their photos.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/faces` | List faces | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/faces/{face_id}/photo` | Face photo | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/faces/{face_id}/crop` | Face crop | alerts:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/faces/{face_id}` | Name a face | admin | admin | - | false |
| DELETE | `/api/v1/faces/{face_id}` | Delete a face | admin | admin | - | false |
| GET | `/api/v1/alerts/{alert_id}/face-photo` | Get an alert's face crop | alerts:read | admin, operator, viewer | viewer | false |

## Recordings

Recorded segments, coverage timeline and playback.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/cameras/{camera_id}/timeline` | Recording coverage | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/previews` | List the scrubbing pictures of a camera's recordings | recordings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/area-searches` | Find when a part of the picture changed | recordings:write | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/area-searches/{search_id}` | Read an area search | recordings:read | admin, operator, viewer | viewer | false |
| DELETE | `/api/v1/cameras/{camera_id}/area-searches/{search_id}` | Cancel an area search | recordings:write | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/area-searches/{search_id}/changes/{change_id}/picture` | Picture of the area before or after a finding | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/hd-recordings` | List a camera's HD clips | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/hd-recordings/{hd_recording_id}/media` | Play an HD clip | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/recordings` | List recordings | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/recordings/{recording_id}` | Get a recording | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/recordings/{recording_id}/media` | Play a recording | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/recordings/{recording_id}/preview` | Get a recording's scrubbing pictures | recordings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/recordings/{recording_id}/actions/protect` | Protect a recording | recordings:write | admin, operator, viewer | operator | true |
| POST | `/api/v1/recordings/{recording_id}/actions/unprotect` | Unprotect a recording | recordings:write | admin, operator, viewer | operator | true |
| GET | `/api/v1/cameras/{camera_id}/frame` | Get a frame from the recordings | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/recording-days` | List the days with recordings | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/recordings/cameras` | List cameras with recordings | recordings:read | admin, operator, viewer | - | false |

## Clips

Clip exports (MP4 cut from recordings) and their public share links.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/clips` | List clips | recordings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/clips` | Export a clip | recordings:write | admin, operator, viewer | viewer | true |
| GET | `/api/v1/clips/{clip_id}` | Get a clip | recordings:read | admin, operator, viewer | viewer | false |
| DELETE | `/api/v1/clips/{clip_id}` | Delete a clip | recordings:write | admin, operator, viewer | viewer | false |
| POST | `/api/v1/clips/{clip_id}/actions/create-download-url` | Get a download URL | recordings:write | admin, operator, viewer | viewer | true |
| GET | `/api/v1/clips/{clip_id}/shares` | List a clip's share links | clips:share | admin, operator, viewer | - | false |
| POST | `/api/v1/clips/{clip_id}/shares` | Create a public share link | clips:share | admin, operator, viewer | viewer | unsupported |
| DELETE | `/api/v1/clips/{clip_id}/shares/{share_id}` | Revoke a share link | clips:share | admin, operator, viewer | - | false |
| GET | `/api/v1/cameras/{camera_id}/live-shares` | List a camera's live share links | clips:share | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/live-shares` | Create a live share link | clips:share | admin, operator | operator | unsupported |
| DELETE | `/api/v1/cameras/{camera_id}/live-shares/{live_share_id}` | Revoke a live share link | clips:share | admin, operator | operator | false |
| DELETE | `/api/v1/shares/{share_id}` | Revoke a share link of either kind | clips:share | admin, operator, viewer | - | false |
| GET | `/api/v1/shares` | List share links | clips:share | admin, operator, viewer | - | false |
| POST | `/api/v1/clips/actions/preflight` | Check clips before exporting | recordings:write | admin, operator, viewer | - | false |

## Library

The media library (API 1.52.0): pictures and clips saved on the server, in folders, and albums (ordered lists of saved items). Kept until deleted; recording retention never removes them.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/library/items` | List saved pictures and clips | recordings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/library/items` | Save a clip export in the library | recordings:write | admin, operator | viewer | false |
| POST | `/api/v1/library/uploads` | Upload a picture or clip to the library | recordings:write | admin, operator | viewer | false |
| GET | `/api/v1/library/items/{item_id}` | Get a saved item | recordings:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/library/items/{item_id}` | Rename, move or annotate a saved item | recordings:write | admin, operator | viewer | false |
| DELETE | `/api/v1/library/items/{item_id}` | Delete a saved item | recordings:write | admin, operator | viewer | false |
| GET | `/api/v1/library/items/{item_id}/media` | Get a saved item's file | recordings:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/library/items/{item_id}/thumbnail` | Get a saved item's thumbnail | recordings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/library/items/{item_id}/shares` | Create a public link to a saved item | clips:share | admin, operator | viewer | unsupported |
| GET | `/api/v1/library/folders` | List library folders | recordings:read | admin, operator, viewer | - | false |
| POST | `/api/v1/library/folders` | Create a library folder | recordings:write | admin, operator | - | false |
| POST | `/api/v1/library/folders/actions/move` | Rename or move a library folder | recordings:write | admin, operator | - | false |
| POST | `/api/v1/library/folders/actions/delete` | Delete an empty library folder | recordings:write | admin, operator | - | false |
| GET | `/api/v1/library/albums` | List albums | recordings:read | admin, operator, viewer | - | false |
| POST | `/api/v1/library/albums` | Create an album | recordings:write | admin, operator | - | false |
| GET | `/api/v1/library/albums/{album_id}` | Get an album with its items | recordings:read | admin, operator, viewer | - | false |
| PATCH | `/api/v1/library/albums/{album_id}` | Rename an album or change its cover | recordings:write | admin, operator | - | false |
| DELETE | `/api/v1/library/albums/{album_id}` | Delete an album | recordings:write | admin, operator | - | false |
| POST | `/api/v1/library/albums/{album_id}/actions/add-items` | Add items to an album | recordings:write | admin, operator | - | false |
| POST | `/api/v1/library/albums/{album_id}/actions/remove-items` | Remove items from an album | recordings:write | admin, operator | - | false |
| POST | `/api/v1/library/albums/{album_id}/actions/reorder` | Reorder an album | recordings:write | admin, operator | - | false |
| POST | `/api/v1/library/albums/{album_id}/shares` | Create a public link to an album | clips:share | admin, operator | - | unsupported |
| GET | `/api/v1/library/stats` | Library storage use | recordings:read | admin, operator | - | false |

## Guardian

The Guardian log (what the AI saw and heard), its search, on-demand analysis and chat, and the speech transcript of a camera or microphone (its segments, translated passages and summaries).

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| POST | `/api/v1/cameras/{camera_id}/actions/analyze` | Analyze a camera now | guardian:write | admin, operator | operator | true |
| POST | `/api/v1/cameras/{camera_id}/actions/transcribe-recordings` | Transcribe recordings in a time range | guardian:write | admin, operator | operator | false |
| POST | `/api/v1/images/actions/analyze` | Describe and find objects in an image | cameras:read | admin, operator, viewer | - | false |
| GET | `/api/v1/guardian/entries` | List Guardian entries | guardian:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/guardian/entries/{entry_id}` | Get a Guardian entry | guardian:read | admin, operator, viewer | viewer | false |
| DELETE | `/api/v1/guardian/entries/{entry_id}` | Delete a Guardian entry | guardian:write | admin, operator | operator | false |
| POST | `/api/v1/guardian/entries/actions/delete` | Delete Guardian entries in bulk | guardian:write | admin, operator | operator | false |
| GET | `/api/v1/guardian/trash` | List recently deleted Guardian entries | guardian:read | admin, operator | operator | false |
| GET | `/api/v1/guardian/trash/settings` | Recently deleted settings | guardian:read | admin, operator | - | false |
| PATCH | `/api/v1/guardian/trash/settings` | Change the Recently deleted settings | settings:write | admin | - | false |
| GET | `/api/v1/guardian/trash/{entry_id}/frame` | Get a deleted Guardian entry's frame | guardian:read | admin, operator | operator | false |
| POST | `/api/v1/guardian/trash/actions/restore` | Restore deleted Guardian entries | guardian:write | admin, operator | operator | false |
| POST | `/api/v1/guardian/trash/actions/purge` | Permanently delete recently deleted entries | guardian:write | admin | - | false |
| GET | `/api/v1/guardian/search` | Search the Guardian log | guardian:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/guardian/chat` | Ask Guardian | guardian:write | admin, operator, viewer | viewer | false |
| GET | `/api/v1/guardian/pending-actions/{pending_id}` | A Guardian chat action waiting for approval | session | admin, operator, viewer | - | false |
| POST | `/api/v1/guardian/pending-actions/{pending_id}/actions/approve` | Approve a Guardian chat action | session | admin, operator | - | false |
| POST | `/api/v1/guardian/pending-actions/{pending_id}/actions/deny` | Deny a Guardian chat action | session | admin, operator, viewer | - | false |
| POST | `/api/v1/cameras/{camera_id}/actions/compare` | Compare with the reference frame | guardian:write | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/read-plates` | Read licence plates | guardian:write | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/actions/read-weather` | Read the weather | guardian:write | admin, operator, viewer | viewer | false |
| GET | `/api/v1/guardian/entries/{entry_id}/frame` | Get a Guardian entry's frame | guardian:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/guardian/entries/{entry_id}/clip` | Get a Guardian entry's clip | guardian:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/guardian/entries/actions/recompute-frames` | Recompute the pictures of recent Guardian entries | guardian:write | admin | - | false |
| POST | `/api/v1/guardian/entries/actions/recompute-clips` | Re-cut the clips of recent Guardian entries | guardian:write | admin | - | false |
| GET | `/api/v1/guardian/clips/settings` | Guardian clip settings | guardian:read | admin, operator | - | false |
| PATCH | `/api/v1/guardian/clips/settings` | Change the Guardian clip settings | settings:write | admin | - | false |
| POST | `/api/v1/rooms/{room_id}/ai-live/actions/start` | Start AI Live in a room | guardian:write | admin, operator | viewer | false |
| POST | `/api/v1/rooms/{room_id}/ai-live/actions/stop` | Stop AI Live in a room | guardian:write | admin, operator | viewer | false |
| GET | `/api/v1/rooms/{room_id}/ai-live/messages` | Get a room's AI Live cards | guardian:write | admin, operator, viewer | viewer | false |
| POST | `/api/v1/rooms/{room_id}/ai-live/actions/feedback` | Mark an AI Live suggestion | guardian:write | admin, operator | viewer | false |
| GET | `/api/v1/rooms/{room_id}/ai-live/digest` | Get a room's daily AI Live digest | guardian:write | admin, operator | viewer | false |
| GET | `/api/v1/rooms/{room_id}/guardian-entries` | List a room's Guardian entries | guardian:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/guardian/conversations` | List Guardian conversations | guardian:read | admin, operator, viewer | - | false |
| POST | `/api/v1/guardian/conversations` | Start a Guardian conversation | guardian:write | admin, operator, viewer | - | false |
| PATCH | `/api/v1/guardian/conversations/{conversation_id}` | Rename a Guardian conversation | guardian:write | admin, operator, viewer | - | false |
| DELETE | `/api/v1/guardian/conversations/{conversation_id}` | Delete a Guardian conversation | guardian:write | admin, operator, viewer | - | false |
| GET | `/api/v1/guardian/conversations/{conversation_id}/messages` | Get a conversation's messages | guardian:read | admin, operator, viewer | - | false |
| GET | `/api/v1/guardian/transcripts` | List speech transcripts | guardian:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/weather/current` | Get the current weather | guardian:read | admin, operator, viewer | - | false |
| GET | `/api/v1/cameras/{camera_id}/transcript` | Speech transcript segments | guardian:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/transcript/coverage` | Transcript coverage ranges | guardian:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/transcript/actions/translate` | Translate transcript passages | guardian:write | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/transcript/actions/summarize` | Summarize recent speech | guardian:write | admin, operator, viewer | viewer | false |

## Settings

Sites, rooms and layouts.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/sites` | List sites | settings:read | admin, operator | - | false |
| POST | `/api/v1/sites` | Create a site | settings:write | admin, operator | - | false |
| GET | `/api/v1/sites/{site_id}` | Get a site | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/sites/{site_id}` | Update a site | settings:write | admin, operator | - | false |
| DELETE | `/api/v1/sites/{site_id}` | Delete a site | settings:write | admin, operator | - | false |
| GET | `/api/v1/rooms` | List rooms | settings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/rooms` | Create a room | cameras:write | admin, operator | - | false |
| GET | `/api/v1/rooms/{room_id}` | Get a room | settings:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/rooms/{room_id}` | Update a room | cameras:write | admin, operator | operator | false |
| DELETE | `/api/v1/rooms/{room_id}` | Delete a room | cameras:write | admin, operator | operator | false |
| GET | `/api/v1/layouts` | List layouts | settings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/layouts` | Create a layout | settings:write | admin, operator, viewer | - | false |
| GET | `/api/v1/layouts/{layout_id}` | Get a layout | settings:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/layouts/{layout_id}` | Update a layout | settings:write | admin, operator, viewer | - | false |
| DELETE | `/api/v1/layouts/{layout_id}` | Delete a layout | settings:write | admin, operator, viewer | - | false |
| GET | `/api/v1/settings` | Server settings | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/settings` | Change server settings | settings:write | admin | - | false |
| GET | `/api/v1/settings/agents` | AI agent settings | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/settings/agents` | Change AI agent settings | settings:write | admin | - | false |
| GET | `/api/v1/layout-sequences` | List layout sequences | settings:read | admin, operator, viewer | - | false |
| POST | `/api/v1/layout-sequences` | Create a layout sequence | settings:write | admin, operator, viewer | - | false |
| DELETE | `/api/v1/layout-sequences/{layout_sequence_id}` | Delete a layout sequence | settings:write | admin, operator, viewer | - | false |
| GET | `/api/v1/rooms/stt-providers` | List speech-to-text providers | settings:read | admin, operator, viewer | - | false |
| GET | `/api/v1/rooms/{room_id}/inventory` | Get a room's stock list | settings:read | admin, operator, viewer | viewer | false |
| DELETE | `/api/v1/rooms/{room_id}/inventory` | Clear a room's stock list | cameras:write | admin, operator | operator | false |
| POST | `/api/v1/rooms/{room_id}/inventory/actions/replace` | Replace a room's stock list | cameras:write | admin, operator | operator | false |
| GET | `/api/v1/rooms/{room_id}/outputs` | List a room's speakers | settings:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/rooms/{room_id}/outputs` | Set a room's speakers | cameras:write | admin, operator | operator | false |
| GET | `/api/v1/rooms/{room_id}/actuations` | List a room's actuations | settings:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/rooms/{room_id}/actions/speak` | Speak in a room | cameras:control | admin, operator | operator | false |
| POST | `/api/v1/rooms/{room_id}/actions/play-audio` | Play audio in a room | cameras:control | admin, operator | operator | false |
| GET | `/api/v1/output-devices` | List output devices (tools) | cameras:read | admin, operator | - | false |
| GET | `/api/v1/outputs` | List speakers | cameras:read | admin, operator | - | false |
| POST | `/api/v1/outputs` | Add a speaker | cameras:write | admin, operator | - | false |
| PATCH | `/api/v1/outputs/{output_id}` | Update a speaker | cameras:write | admin, operator | - | false |
| DELETE | `/api/v1/outputs/{output_id}` | Delete a speaker | cameras:write | admin, operator | - | false |
| POST | `/api/v1/outputs/{output_id}/actions/test` | Test a speaker | cameras:control | admin, operator | - | false |
| GET | `/api/v1/clients/{client_id}/audio-outputs` | List a client's audio devices | cameras:read | admin, operator | - | false |
| GET | `/api/v1/branding` | Get the server's custom branding | settings:read | admin, operator, viewer | - | false |
| PATCH | `/api/v1/branding` | Change the server's name, accent colour or Powered by line | settings:write | admin | - | false |
| DELETE | `/api/v1/branding/logo` | Remove the server's logo | settings:write | admin | - | false |
| PUT | `/api/v1/branding/logo` | Upload the server's logo | settings:write | admin | - | false |

## System

Server status and health.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/system/status` | Server status | settings:read | admin, operator | - | false |
| GET | `/api/v1/system/health` | Server health | settings:read | admin, operator, viewer | - | false |
| GET | `/api/v1/system/dashboard` | Get the dashboard summary | settings:read | admin, operator, viewer | - | false |
| GET | `/api/v1/system/objects` | Get current object counts | cameras:read | admin, operator, viewer | - | false |
| GET | `/api/v1/system/object-history` | Get object count history | cameras:read | admin, operator, viewer | - | false |
| GET | `/api/v1/system/ai-status` | Get the AI status | settings:read | admin, operator | - | false |
| POST | `/api/v1/system/ai-status/actions/retry` | Retry the paused AI now | settings:write | admin, operator | - | false |
| GET | `/api/v1/system/plan` | Get this server's entitlements | settings:read | admin, operator | - | false |
| GET | `/api/v1/system/cloud-plan` | Get the Vigiora cloud plan | settings:read | admin, operator | - | false |
| GET | `/api/v1/system/plan/cart` | Get the open plan cart | settings:read | admin, operator | - | false |
| POST | `/api/v1/system/plan/cart/actions/add-items` | Add cameras to the plan cart | settings:write | admin, operator | - | false |
| POST | `/api/v1/system/plan/cart/actions/remove-items` | Remove cameras from the plan cart | settings:write | admin, operator | - | false |
| POST | `/api/v1/system/plan/cart/actions/checkout-url` | Get the cart checkout link | settings:write | admin, operator | - | false |
| GET | `/api/v1/system/plan/cart/{cart_id}` | Get a plan cart by id | settings:read | admin, operator | - | false |
| POST | `/api/v1/system/plan/cart/{cart_id}/actions/paid` | Mark a plan cart paid | settings:write | admin, operator | - | false |
| GET | `/api/v1/system/mesh` | Get the mesh status | settings:read | admin | - | false |
| GET | `/api/v1/system/update` | Get the update status | settings:read | admin | - | false |
| POST | `/api/v1/system/update/actions/check` | Check for an update | settings:write | admin | - | false |
| POST | `/api/v1/system/update/actions/install` | Install the staged update | settings:write | admin | - | false |
| GET | `/api/v1/system/edge` | Get the edge status | settings:read | admin | - | false |
| GET | `/api/v1/system/remote-access` | Get remote access | settings:read | admin | - | false |
| PATCH | `/api/v1/system/remote-access` | Switch remote access | session | admin | - | false |
| GET | `/api/v1/system/health/inventory` | Get the server's hardware inventory | settings:read | admin, operator | - | false |
| GET | `/api/v1/system/health/upgrades` | Get the hardware upgrade suggestions | settings:read | admin, operator | - | false |
| GET | `/api/v1/system/health/disks` | Get the disks' speed and space left | settings:read | admin, operator | - | false |
| POST | `/api/v1/system/health/disks/actions/benchmark` | Test the disks' speed now | settings:write | admin, operator | - | false |
| GET | `/api/v1/system/health/reports` | List health reports | settings:read | admin, operator | - | false |
| GET | `/api/v1/system/health/reports/latest` | Get the latest health report | settings:read | admin, operator | - | false |
| GET | `/api/v1/system/health/reports/{health_report_id}` | Get a health report | settings:read | admin, operator | - | false |
| POST | `/api/v1/system/health/actions/run` | Run the health check now | settings:write | admin, operator | - | false |
| GET | `/api/v1/system/capacity` | How many more cameras the server can take | settings:read | admin, operator | - | false |
| POST | `/api/v1/system/capacity/actions/check` | Check the server's capacity now | settings:write | admin, operator | - | false |
| GET | `/api/v1/system/health/settings` | Get the health check settings | settings:read | admin | - | false |
| PATCH | `/api/v1/system/health/settings` | Change the health check settings | settings:write | admin | - | false |
| GET | `/api/v1/system/client-errors` | List client error reports | settings:read | admin | - | false |
| POST | `/api/v1/system/client-errors/actions/resolve-all` | Resolve every client error report | settings:write | admin | - | false |
| GET | `/api/v1/system/client-errors/{client_error_id}` | Get a client error report | settings:read | admin | - | false |
| POST | `/api/v1/system/client-errors/{client_error_id}/actions/resolve` | Resolve a client error report | settings:write | admin | - | false |
| POST | `/api/v1/system/client-errors/{client_error_id}/actions/unresolve` | Unresolve a client error report | settings:write | admin | - | false |
| GET | `/api/v1/system/error-reports` | List error reports for Vigiora | settings:read | admin | - | false |
| PATCH | `/api/v1/system/error-reports/settings` | Change whether error reports are sent | settings:write | admin | - | false |
| POST | `/api/v1/system/error-reports/actions/send` | Send error reports to Vigiora | settings:write | admin | - | false |
| POST | `/api/v1/system/error-reports/actions/dismiss` | Dismiss error reports | settings:write | admin | - | false |
| GET | `/api/v1/system/program` | Get the Vigiora Feedback Program status | - | admin, operator, viewer | - | false |
| GET | `/api/v1/feedback` | List sent feedback | - | admin, operator, viewer | - | false |
| POST | `/api/v1/feedback` | Send feedback to Vigiora | session | admin, operator, viewer | - | false |
| GET | `/api/v1/system/ai-model` | Get the AI model setting | settings:read | admin | - | false |
| PATCH | `/api/v1/system/ai-model` | Choose the AI model | settings:write | admin | - | unsupported |
| POST | `/api/v1/system/ai-model/actions/test` | Test the AI model | settings:write | admin | - | unsupported |
| POST | `/api/v1/system/ai-model/actions/list-models` | List the models of a model server | settings:write | admin | - | unsupported |

## Users

Users and permission groups. Admins only.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/users` | List users | users:read | admin | - | false |
| POST | `/api/v1/users` | Add a user | users:write | admin | - | false |
| GET | `/api/v1/users/{user_id}` | Get a user | users:read | admin | - | false |
| PATCH | `/api/v1/users/{user_id}` | Change a user | users:write | admin | - | false |
| DELETE | `/api/v1/users/{user_id}` | Delete a user | users:write | admin | - | false |
| POST | `/api/v1/users/{user_id}/actions/reset-two-factor` | Turn a user's two-factor sign-in off | session | admin | - | unsupported |
| GET | `/api/v1/groups` | List groups | users:read | admin | - | false |
| POST | `/api/v1/groups` | Create a group | users:write | admin | - | false |
| GET | `/api/v1/groups/{group_id}` | Get a group | users:read | admin | - | false |
| PATCH | `/api/v1/groups/{group_id}` | Update a group | users:write | admin | - | false |
| DELETE | `/api/v1/groups/{group_id}` | Delete a group | users:write | admin | - | false |

## Config

Configuration export and import (backup and restore). Admins only.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/config/export` | Export the configuration | settings:read | admin | - | false |
| POST | `/api/v1/config/import` | Import a configuration | admin | admin | - | false |

## API keys

Personal API keys with scopes. User sessions only.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/api-keys` | List API keys | session | admin, operator, viewer | - | false |
| POST | `/api/v1/api-keys` | Create an API key | session | admin, operator, viewer | - | unsupported |
| GET | `/api/v1/api-keys/{key_id}` | Get an API key | session | admin, operator, viewer | - | false |
| PATCH | `/api/v1/api-keys/{key_id}` | Change an API key | session | admin, operator, viewer | - | false |
| DELETE | `/api/v1/api-keys/{key_id}` | Revoke an API key | session | admin, operator, viewer | - | false |

## Events

The event log and live event stream.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/events` | List events | events:read | admin, operator, viewer | - | false |
| GET | `/api/v1/events/stream` | Stream events (SSE) | events:read | admin, operator, viewer | - | false |

## Webhooks

Signed event delivery to your URLs. Admins only.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/webhooks` | List webhooks | webhooks:read | admin, operator | - | false |
| POST | `/api/v1/webhooks` | Create a webhook | webhooks:write | admin | - | unsupported |
| GET | `/api/v1/webhooks/{webhook_id}` | Get a webhook | webhooks:read | admin, operator | - | false |
| PATCH | `/api/v1/webhooks/{webhook_id}` | Update a webhook | webhooks:write | admin | - | false |
| DELETE | `/api/v1/webhooks/{webhook_id}` | Delete a webhook | webhooks:write | admin | - | false |
| POST | `/api/v1/webhooks/{webhook_id}/actions/rotate-secret` | Rotate the signing secret | webhooks:write | admin | - | unsupported |
| POST | `/api/v1/webhooks/{webhook_id}/actions/test` | Send a test event | webhooks:write | admin | - | false |
| GET | `/api/v1/webhooks/{webhook_id}/deliveries` | Delivery log | webhooks:read | admin, operator | - | false |
| POST | `/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/actions/redeliver` | Redeliver | webhooks:write | admin | - | false |

## Automations

Rules drawn on a canvas: a trigger (a detection, a device changing, a camera going offline, a time of day, a web address, or by hand), conditions and actions (a notification, a device command, a light effect, a sound or siren, a PTZ preset, the AI guardian, an outgoing webhook, a wait). Admins and operators.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/automations` | List automations | devices:read | admin, operator | - | false |
| POST | `/api/v1/automations` | Create an automation | devices:write | admin, operator | - | unsupported |
| GET | `/api/v1/automations/node-types` | List the steps an automation can use | devices:read | admin, operator | - | false |
| POST | `/api/v1/automations/actions/validate` | Check an automation's graph | devices:read | admin, operator | - | false |
| POST | `/api/v1/automations/actions/import` | Create an automation from a blueprint | devices:write | admin, operator | - | unsupported |
| GET | `/api/v1/automations/blueprints` | Built-in automation blueprints | devices:read | admin, operator | - | false |
| POST | `/api/v1/automations/blueprints/actions/check` | Check a blueprint file | devices:read | admin, operator | - | false |
| GET | `/api/v1/automations/{automation_id}` | Read one automation | devices:read | admin, operator | - | false |
| PATCH | `/api/v1/automations/{automation_id}` | Change an automation | devices:write | admin, operator | - | unsupported |
| DELETE | `/api/v1/automations/{automation_id}` | Delete an automation | devices:write | admin, operator | - | false |
| POST | `/api/v1/automations/{automation_id}/actions/run` | Run or test an automation now | devices:control | admin, operator | - | false |
| POST | `/api/v1/automations/{automation_id}/actions/confirm` | Confirm an automation's sensitive actions | session | admin | - | false |
| POST | `/api/v1/automations/{automation_id}/actions/rotate-webhook` | Replace an automation's web address | devices:write | admin, operator | - | unsupported |
| GET | `/api/v1/automations/{automation_id}/blueprint` | Export an automation as a blueprint | devices:read | admin, operator | - | false |
| GET | `/api/v1/automations/{automation_id}/runs` | An automation's run log | devices:read | admin, operator | - | false |

## Network

Discovery on the server's own LAN (self-hosted servers only): scan the directly connected private subnets for devices, open camera ports and ONVIF cameras, and resolve a MAC address to its current IP (DHCP addresses change; MACs do not). Only RFC 1918 subnets connected to a physical interface are ever probed (never CGNAT, public or link-local ranges), at most a /22 (1022 hosts) per scan, with TCP connects to an allowlist of ports (80, 443, 554, 8000, 8080, 8899, 9000, 34567, 37777) and one WS-Discovery multicast probe. Automatic camera following has priority on the LAN: while it sweeps, scans and lookup sweeps answer `503 network_busy` with `Retry-After` at once (and a running scan it interrupts ends `failed` with `error: busy…`); lookup sweeps also share a server-wide budget of 4 per 10 minutes (`503 network_busy`, `details.reason: lookup_budget`). When discovery cannot work here (hosted server, a container without host networking, no neighbour table on this OS, no private subnet) every operation answers `409 network_unavailable` with `details.reason` (`hosted`, `container_network` — a Docker/Podman bridge, Kubernetes pod, containerd or LXC container without host networking, or Docker Desktop —, `not_supported`, `no_lan`, `disabled`), never an empty result (except `GET /network/auto-scan`, which answers `available: false` with the reason). Automatic scanning (`/network/auto-scan`) runs these scans on a schedule and keeps the new camera candidates (`/network/candidates`). Admins and operators with `network:read`.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| POST | `/api/v1/network/actions/scan` | Scan the local network | network:read | admin, operator | - | false |
| GET | `/api/v1/network/scans/{scan_id}` | Get a network scan | network:read | admin, operator | - | false |
| GET | `/api/v1/network/devices` | List devices on the local network | network:read | admin, operator | - | false |
| GET | `/api/v1/network/lookup` | Find the current IP of a MAC (or the MAC of an IP) | network:read | admin, operator | - | false |
| GET | `/api/v1/network/auto-scan` | Get the automatic network scan settings | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/network/auto-scan` | Turn automatic network scanning on or off | settings:write | admin | - | false |
| POST | `/api/v1/network/auto-scan/actions/run` | Scan the network for new cameras now | network:read | admin, operator | - | false |
| GET | `/api/v1/network/candidates` | List new cameras found on the network | network:read | admin, operator | - | false |
| POST | `/api/v1/network/candidates/{candidate_id}/actions/dismiss` | Ignore a device found on the network | network:read | admin, operator | - | false |
| POST | `/api/v1/network/devices/actions/move-to-dhcp` | Move a camera from a conflicting static address to DHCP | cameras:write | admin | - | false |
| GET | `/api/v1/network/dhcp-moves/{job_id}` | Poll a move to DHCP | cameras:write | admin | - | false |

## Setup

The first-install setup wizard and the dashboard's Setup checklist: health checks with fixes, the checklist and the AI camera suggestion. Camera detection (connect with a login, streams found automatically) is under Cameras. The web app's wizard calls these with the admin's session once its account step signed the admin in.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/setup/diagnostics` | Run the health checks | settings:read | admin, operator | - | false |
| POST | `/api/v1/setup/diagnostics/actions/fix` | Run an automatic fix | settings:write | admin | - | false |
| GET | `/api/v1/setup/checklist` | Get the setup checklist | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/setup/checklist` | Mark setup checklist items | settings:write | admin | - | false |
| GET | `/api/v1/setup/ai-camera-suggestions` | Suggest the cameras for AI | cameras:read | admin, operator | - | false |

## Alert rules

What raises alerts: Guardian alert rules (natural-language rules the AI checks each analysed clip and transcript against), label alert rules (which detector labels are alerts) and smart-motion rules (lines and zones). Rules only fire on cameras with AI (`ai_enabled`).

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/alert-rules` | List Guardian alert rules | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/alert-rules` | List a camera's Guardian alert rules | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/alert-rules` | Create a Guardian alert rule | alerts:write | admin, operator | operator | true |
| GET | `/api/v1/alert-rules/{alert_rule_id}` | Get a Guardian alert rule | alerts:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/alert-rules/{alert_rule_id}` | Update a Guardian alert rule | alerts:write | admin, operator | operator | false |
| DELETE | `/api/v1/alert-rules/{alert_rule_id}` | Delete a Guardian alert rule | alerts:write | admin, operator | operator | false |
| POST | `/api/v1/alert-rules/{alert_rule_id}/actions/enable` | Enable a Guardian alert rule | alerts:write | admin, operator | operator | true |
| POST | `/api/v1/alert-rules/{alert_rule_id}/actions/disable` | Disable a Guardian alert rule | alerts:write | admin, operator | operator | true |
| GET | `/api/v1/cameras/{camera_id}/label-alert-rules` | List a camera's label alert rules | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/label-alert-rules` | Create a label alert rule | alerts:write | admin, operator | operator | true |
| GET | `/api/v1/label-alert-rules/{label_alert_rule_id}` | Get a label alert rule | alerts:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/label-alert-rules/{label_alert_rule_id}` | Update a label alert rule | alerts:write | admin, operator | operator | false |
| DELETE | `/api/v1/label-alert-rules/{label_alert_rule_id}` | Delete a label alert rule | alerts:write | admin, operator | operator | false |
| GET | `/api/v1/cameras/{camera_id}/labels` | List a camera's detector labels | alerts:read | admin, operator, viewer | viewer | false |
| GET | `/api/v1/cameras/{camera_id}/motion-rules` | List a camera's smart-motion rules | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/cameras/{camera_id}/motion-rules` | Create a smart-motion rule | alerts:write | admin, operator | operator | true |
| GET | `/api/v1/motion-rules/{motion_rule_id}` | Get a smart-motion rule | alerts:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/motion-rules/{motion_rule_id}` | Update a smart-motion rule | alerts:write | admin, operator | operator | false |
| DELETE | `/api/v1/motion-rules/{motion_rule_id}` | Delete a smart-motion rule | alerts:write | admin, operator | operator | false |
| GET | `/api/v1/rooms/{room_id}/alert-rules` | List a room's Guardian alert rules | alerts:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/rooms/{room_id}/alert-rules` | Create a room Guardian alert rule | alerts:write | admin, operator | operator | true |
| GET | `/api/v1/rooms/{room_id}/alert-rules/{alert_rule_id}` | Get a room Guardian alert rule | alerts:read | admin, operator, viewer | viewer | false |
| PATCH | `/api/v1/rooms/{room_id}/alert-rules/{alert_rule_id}` | Update a room Guardian alert rule | alerts:write | admin, operator | operator | false |
| DELETE | `/api/v1/rooms/{room_id}/alert-rules/{alert_rule_id}` | Delete a room Guardian alert rule | alerts:write | admin, operator | operator | false |

## Briefing

The dashboard Briefing: what needs attention, the AI recap and the activity feed of the caller's cameras.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/briefing` | Get the Briefing | guardian:read | admin, operator, viewer | - | false |
| GET | `/api/v1/briefing/recap` | Get the Briefing recap | guardian:read | admin, operator, viewer | - | false |
| POST | `/api/v1/briefing/recap/actions/refresh` | Refresh the Briefing recap | guardian:write | admin, operator, viewer | - | false |
| GET | `/api/v1/briefing/feed` | Get the Briefing activity feed | guardian:read | admin, operator, viewer | - | false |
| POST | `/api/v1/briefing/items/{briefing_item_token}/actions/mark-reviewed` | Mark a Briefing item reviewed | guardian:write | admin, operator, viewer | - | false |
| POST | `/api/v1/briefing/items/{briefing_item_token}/actions/unmark-reviewed` | Mark a Briefing item unreviewed | guardian:write | admin, operator, viewer | - | false |

## AI Live

AI Live sessions on single cameras (rooms have their own under `/rooms/{room_id}/ai-live`).

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/ai-live/sessions` | List AI Live sessions | guardian:read | admin, operator, viewer | viewer | false |
| POST | `/api/v1/ai-live/sessions` | Start AI Live on a camera | guardian:write | admin, operator, viewer | viewer | false |
| DELETE | `/api/v1/ai-live/sessions/{ai_live_session_id}` | Delete an AI Live session | guardian:write | admin, operator, viewer | operator | false |
| POST | `/api/v1/ai-live/sessions/{ai_live_session_id}/actions/stop` | Stop an AI Live session | guardian:write | admin, operator | viewer | false |
| POST | `/api/v1/ai-live/sessions/{ai_live_session_id}/actions/set-mode` | Change what AI Live watches | guardian:write | admin, operator | viewer | false |
| GET | `/api/v1/ai-live/sessions/{ai_live_session_id}/messages` | Get an AI Live session's cards | guardian:write | admin, operator, viewer | viewer | false |
| GET | `/api/v1/ai-live/history` | Get a camera's AI Live history | guardian:read | admin, operator, viewer | viewer | false |

## Clients

vigiora-clients: the boxes on remote sites that relay their cameras to this server.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/clients` | List vigiora-clients | cameras:read | admin, operator | - | false |
| GET | `/api/v1/clients/{client_id}` | Get a vigiora-client | cameras:read | admin, operator | - | false |
| PATCH | `/api/v1/clients/{client_id}` | Update a vigiora-client | cameras:write | admin | - | false |
| DELETE | `/api/v1/clients/{client_id}` | Remove a vigiora-client | cameras:write | admin | - | false |
| POST | `/api/v1/clients/{client_id}/actions/restart` | Restart a vigiora-client | cameras:write | admin | - | false |
| POST | `/api/v1/clients/{client_id}/actions/update` | Update a vigiora-client | cameras:write | admin | - | false |
| POST | `/api/v1/clients/{client_id}/actions/resync-cameras` | Resync a client's cameras | cameras:write | admin | - | false |
| POST | `/api/v1/clients/{client_id}/actions/install-ffmpeg` | Install ffmpeg on a client | cameras:write | admin | - | false |
| GET | `/api/v1/clients/{client_id}/status-history` | Get a client's status history | cameras:read | admin, operator | - | false |
| POST | `/api/v1/clients/{client_id}/cameras` | Add a camera on a client's network | cameras:write | admin | - | false |

## Admin

Billing, costs, connected apps, enrolled AI service instances and external tools. User sessions only (never an API key), as in the web app.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/costs` | Get costs | session | admin | - | false |
| GET | `/api/v1/billing/account` | Get the billing account | session | admin | - | false |
| GET | `/api/v1/billing/plans` | List billing plans | session | admin | - | false |
| GET | `/api/v1/billing/transactions` | List billing transactions | session | admin | - | false |
| GET | `/api/v1/billing/usage` | Get billing usage | session | admin | - | false |
| GET | `/api/v1/connected-apps` | List connected apps | session | admin, operator, viewer | - | false |
| PATCH | `/api/v1/connected-apps/{connected_app_id}` | Change a connected app's human in the loop | session | admin, operator, viewer | - | false |
| DELETE | `/api/v1/connected-apps/{connected_app_id}` | Disconnect an app | session | admin, operator, viewer | - | false |
| GET | `/api/v1/ai-service-instances` | List AI service instances | session | admin, operator | - | false |
| GET | `/api/v1/ai-service-instances/{ai_service_instance_id}` | Get an AI service instance | session | admin, operator | - | false |
| DELETE | `/api/v1/ai-service-instances/{ai_service_instance_id}` | Revoke an AI service instance | session | admin, operator | - | false |
| POST | `/api/v1/ai-service-instances/{ai_service_instance_id}/actions/start` | Start an AI service instance | session | admin, operator | - | false |
| POST | `/api/v1/ai-service-instances/{ai_service_instance_id}/actions/stop` | Stop an AI service instance | session | admin, operator | - | false |
| POST | `/api/v1/ai-service-instances/{ai_service_instance_id}/actions/restart` | Restart an AI service instance | session | admin, operator | - | false |
| GET | `/api/v1/tools` | List external tools | session | admin | - | false |
| POST | `/api/v1/tools` | Add an external tool | session | admin | - | false |
| POST | `/api/v1/tools/actions/test` | Test an external tool | session | admin | - | false |
| GET | `/api/v1/tools/log` | Get the tool log | session | admin | - | false |
| GET | `/api/v1/tools/search` | Search external tools | session | admin | - | false |
| PATCH | `/api/v1/tools/{tool_id}` | Update an external tool | session | admin | - | false |
| DELETE | `/api/v1/tools/{tool_id}` | Delete an external tool | session | admin | - | false |

## Things

A platform-neutral view for IoT platforms (Home Assistant, MQTT, Matter, Google Home, Alexa, SmartThings, HomeKit): devices with capabilities from a closed, versioned catalogue, commands that run the existing operations, and events in one CloudEvents-style envelope. See Things in the description.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/thing-capabilities` | Things capability catalogue | - | admin, operator, viewer | - | false |
| GET | `/api/v1/things` | List things | cameras:read | admin, operator, viewer | - | false |
| GET | `/api/v1/things/{thing_id}` | Get a thing | cameras:read | admin, operator, viewer | - | false |
| POST | `/api/v1/things/{thing_id}/commands/{command_id}` | Run a command on a thing | cameras:read | admin, operator, viewer | - | false |

## Media

Signed, short-lived media links (live video, images) for clients that cannot send an API key.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/media/{media_token}/stream.m3u8` | Signed live video (HLS) | - | admin, operator, viewer | - | false |
| GET | `/api/v1/media/{media_token}/hls/{hls_file}` | Signed live video (HLS files) | - | admin, operator, viewer | - | false |
| GET | `/api/v1/media/{media_token}/image` | Signed image | - | admin, operator, viewer | - | false |

## Integrations

Home Assistant: install it next to this server ("Install Home Assistant for me"; Linux servers for now), with the Vigiora integration set up, or connect an existing one. Vigiora runs the pinned ghcr.io/home-assistant/home-assistant image (version and digest recorded by Vigiora) as the Docker container vigiora-homeassistant through a root helper that a person installs once with a command on the server; the web app never asks for the administrator password. Home Assistant is reachable on the LAN only. Install, update and uninstall need the user's approval for AI agents while human in the loop is on.
MQTT (API 1.26.0): Vigiora publishes its Things to an MQTT broker (retained state per thing, every event in the Things envelope, Home Assistant MQTT discovery) and, when an admin allows control, runs Things commands sent to the command topic. Chat notifications (API 1.26.0): alert rules can send Telegram and LINE messages (`telegram_enabled`, `line_enabled`), with the entry's picture on Telegram; at most 20 messages a minute per service, the rest of a burst summarised. The broker password and the bot tokens are never returned.
Add camera flow (API 1.28.0): network scans also send the camera makers' discovery probes (Hikvision SADP, Dahua, SSDP, mDNS) and report each device's model, firmware and serial, whether it is on DHCP and, for a Hikvision, activated; a device answering from an address another device holds is marked `ip_conflict` and can be moved to DHCP from here (`POST /network/devices/actions/move-to-dhcp`, admins). Camera detection reports the device's facts (model, PTZ, microphone, speaker, audio track), the maker's login advice and a suggested name; `add-detected` can turn on object recognition and Core AI as it creates the camera.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/integrations/home-assistant` | Home Assistant status | settings:read | admin | - | false |
| GET | `/api/v1/integrations/home-assistant/discovered` | Find Home Assistant on the LAN | network:read | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/install` | Install Home Assistant | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/connect-existing` | Connect an existing Home Assistant | settings:write | admin | - | unsupported |
| POST | `/api/v1/integrations/home-assistant/actions/update` | Update Home Assistant | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/update-integration` | Update the Vigiora integration in Home Assistant | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/restart` | Restart Home Assistant | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/uninstall` | Uninstall Home Assistant | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/setup-zigbee` | Set up Zigbee in Home Assistant | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/zigbee-permit-join` | Let a new Zigbee device join | settings:write | admin | - | false |
| GET | `/api/v1/integrations/home-assistant/zigbee/devices` | List the Zigbee devices | settings:read | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/rename` | Rename a Zigbee device | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/remove` | Remove a Zigbee device | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/reconfigure` | Reconfigure a Zigbee device | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/identify` | Make a Zigbee device blink | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/expose` | Share a Zigbee device with Vigiora | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/zigbee/devices/{zigbee_device_id}/actions/unexpose` | Hide a Zigbee device from Vigiora | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/actions/reveal-owner-password` | Show the Home Assistant owner password once | session | admin | - | unsupported |
| GET | `/api/v1/integrations/home-assistant/bridge` | Home Assistant device connection status | devices:read | admin, operator | - | false |
| POST | `/api/v1/integrations/home-assistant/bridge/actions/connect` | Connect Home Assistant's devices | settings:write | admin | - | unsupported |
| POST | `/api/v1/integrations/home-assistant/bridge/actions/disconnect` | Disconnect Home Assistant's devices | settings:write | admin | - | false |
| GET | `/api/v1/integrations/home-assistant/instances` | List the Home Assistant instances | devices:read | admin, operator | - | false |
| POST | `/api/v1/integrations/home-assistant/instances` | Add a Home Assistant instance | settings:write | admin | - | unsupported |
| GET | `/api/v1/integrations/home-assistant/instances/{instance_id}` | A Home Assistant instance | devices:read | admin, operator | - | false |
| PATCH | `/api/v1/integrations/home-assistant/instances/{instance_id}` | Rename, enable or disable a Home Assistant instance | settings:write | admin | - | false |
| DELETE | `/api/v1/integrations/home-assistant/instances/{instance_id}` | Remove a Home Assistant instance | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/instances/{instance_id}/actions/connect` | Connect a Home Assistant instance | settings:write | admin | - | unsupported |
| POST | `/api/v1/integrations/home-assistant/instances/{instance_id}/actions/disconnect` | Disconnect a Home Assistant instance | settings:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/instances/{instance_id}/actions/test` | Test a Home Assistant connection | settings:write | admin | - | unsupported |
| GET | `/api/v1/integrations/home-assistant/instances/{instance_id}/entities` | List an instance's entities to expose | devices:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/instances/{instance_id}/entities/{entity_id}/actions/set-access` | Expose an instance's entity | devices:write | admin | - | false |
| GET | `/api/v1/integrations/home-assistant/entities` | List Home Assistant entities to expose | devices:write | admin | - | false |
| POST | `/api/v1/integrations/home-assistant/entities/{entity_id}/actions/set-access` | Expose a Home Assistant entity | devices:write | admin | - | false |
| GET | `/api/v1/integrations/home-assistant/devices` | List the exposed Home Assistant devices | devices:read | admin, operator | - | false |
| PATCH | `/api/v1/integrations/home-assistant/devices/{entity_id}` | Link a device to cameras and rooms | devices:write | admin, operator | operator | false |
| POST | `/api/v1/integrations/home-assistant/devices/{entity_id}/actions/command` | Run a command on a device | devices:control | admin, operator | - | false |
| GET | `/api/v1/integrations/home-assistant/room-signals/{room_id}` | A room's devices | devices:read | admin, operator | - | false |
| PATCH | `/api/v1/integrations/home-assistant/room-signals/{room_id}` | Set a room's devices | devices:write | admin, operator | - | false |
| GET | `/api/v1/integrations/home-assistant/triggers` | List device triggers | devices:read | admin, operator | viewer | false |
| POST | `/api/v1/integrations/home-assistant/triggers` | Create a device trigger | devices:write | admin, operator | operator | true |
| PATCH | `/api/v1/integrations/home-assistant/triggers/{trigger_id}` | Update a device trigger | devices:write | admin, operator | operator | false |
| DELETE | `/api/v1/integrations/home-assistant/triggers/{trigger_id}` | Delete a device trigger | devices:write | admin, operator | operator | false |
| GET | `/api/v1/integrations/home-assistant/rule-actions/{alert_rule_id}` | An alert rule's device actions | devices:read | admin, operator | viewer | false |
| PATCH | `/api/v1/integrations/home-assistant/rule-actions/{alert_rule_id}` | Set an alert rule's device actions | devices:write | admin, operator | operator | false |
| GET | `/api/v1/integrations/home-assistant/action-log` | Device action log | devices:read | admin, operator | - | false |
| GET | `/api/v1/integrations/home-assistant/pending-actions` | Device actions waiting for approval | session | admin, operator | - | false |
| POST | `/api/v1/integrations/home-assistant/pending-actions/{pending_id}/actions/approve` | Approve a pending device action | session | admin, operator | - | false |
| POST | `/api/v1/integrations/home-assistant/pending-actions/{pending_id}/actions/deny` | Deny a pending device action | session | admin, operator | - | false |
| GET | `/api/v1/integrations/mqtt` | MQTT integration | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/integrations/mqtt` | Set up the MQTT integration | settings:write | admin | - | unsupported |
| POST | `/api/v1/integrations/mqtt/actions/test` | Publish an MQTT test message | settings:write | admin | - | false |
| GET | `/api/v1/integrations/telegram` | Telegram notifications | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/integrations/telegram` | Set up Telegram notifications | settings:write | admin | - | unsupported |
| POST | `/api/v1/integrations/telegram/actions/test` | Send a Telegram test message | settings:write | admin | - | false |
| GET | `/api/v1/integrations/line` | LINE notifications | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/integrations/line` | Set up LINE notifications | settings:write | admin | - | unsupported |
| POST | `/api/v1/integrations/line/actions/test` | Send a LINE test message | settings:write | admin | - | false |

## IoT devices

The IoT devices page (API 1.39.0): one list of every device Vigiora knows through Home Assistant — the bridge's devices and the Zigbee devices of the Home Assistant Vigiora installed, merged by Home Assistant device id — with search, filters, a detail with the data mapping (what Vigiora makes of each entity) and the settings (rename, rooms, cameras, exposure, Zigbee actions).

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/iot/devices` | List the IoT devices | devices:read | admin, operator | - | false |
| GET | `/api/v1/iot/devices/{iot_device_id}` | An IoT device with its data mapping | devices:read | admin, operator | - | false |
| PATCH | `/api/v1/iot/devices/{iot_device_id}` | Change an IoT devices settings | devices:write | admin, operator | operator | false |
| GET | `/api/v1/iot/devices/{iot_device_id}/entities` | An IoT devices entities | devices:read | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/actions/forget` | Forget an IoT device | devices:write | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/actions/expose` | Share an IoT device with Vigiora | devices:write | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/actions/unexpose` | Hide an IoT device from Vigiora | devices:write | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/actions/reconfigure` | Reconfigure a Zigbee device | devices:write | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/actions/identify` | Make a Zigbee device blink | devices:write | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/actions/remove` | Remove a Zigbee device from the network | devices:write | admin | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/entities/{entity_id}/actions/set` | Change a device's control or setting | devices:control | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/entities/{entity_id}/actions/start-effect` | Run a light effect (blink, pulse, strobe) | devices:control | admin, operator | - | false |
| POST | `/api/v1/iot/devices/{iot_device_id}/entities/{entity_id}/actions/stop-effect` | Stop a light effect | devices:control | admin, operator | - | false |
| GET | `/api/v1/iot/auto-actions` | Automatic camera-alert light actions | devices:read | admin, operator | - | false |
| DELETE | `/api/v1/iot/auto-actions/{auto_action_id}` | Dismiss an automatic light action | devices:write | admin, operator | - | false |
| GET | `/api/v1/iot/zigbee` | Zigbee for the IoT devices page | devices:read | admin, operator | - | false |

## Bluetooth

Bluetooth nearby (API 1.42.0): the devices in range of the server's Bluetooth adapter (BLE and classic, through BlueZ), scanned once an hour and on demand, each with what it advertises, a classification and a report of the data it could provide and how Vigiora could use it. Advertisements only: nothing is ever paired or connected to.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/bluetooth` | Bluetooth nearby status | devices:read | admin, operator | - | false |
| GET | `/api/v1/bluetooth/devices` | Bluetooth devices seen near the server | devices:read | admin, operator | - | false |
| GET | `/api/v1/bluetooth/devices/{bluetooth_device_id}` | A Bluetooth device with its report | devices:read | admin, operator | - | false |
| PATCH | `/api/v1/bluetooth/devices/{bluetooth_device_id}` | Note or ignore a Bluetooth device | devices:write | admin, operator | - | false |
| POST | `/api/v1/bluetooth/actions/scan` | Scan for Bluetooth devices now | devices:write | admin, operator | - | false |
| GET | `/api/v1/bluetooth/scans` | Bluetooth scan history | devices:read | admin, operator | - | false |

## Loona

Loona pet robot (API 1.64.0, experimental, read-only): the server finds a Loona robot on the home network, keeps a session to it and reads its battery and version; it also appears on the IoT devices page (source `loona`). Off by default and dormant until an admin enables it and enters the KEYi account user id. Unofficial integration: it uses the vendor app's local protocol and may not be covered by the vendor's terms of service.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/loona` | Loona robot status | devices:read | admin, operator | - | false |
| PATCH | `/api/v1/loona/settings` | Change the Loona settings | devices:write | admin | - | false |
| POST | `/api/v1/loona/actions/refresh` | Ask the Loona robot for its state now | devices:write | admin, operator | - | false |
| POST | `/api/v1/loona/actions/drive` | Drive the Loona robot | devices:control | admin, operator | - | false |
| POST | `/api/v1/loona/actions/speak` | Make the Loona robot speak | devices:control | admin, operator | - | false |
| POST | `/api/v1/loona/actions/photo` | Make the Loona robot take a photo | devices:control | admin, operator | - | false |
| POST | `/api/v1/loona/actions/emote` | Make the Loona robot play an expression | devices:control | admin, operator | - | false |
| POST | `/api/v1/loona/actions/disconnect` | Disconnect from the Loona robot | devices:write | admin, operator | - | false |
| POST | `/api/v1/loona/actions/reconnect` | Reconnect to the Loona robot | devices:write | admin, operator | - | false |

## PerceptionCoach

Perception Coach (API 1.68.0): a background service that audits each AI-guardian camera's prompt against the live frames and either rewrites it (blank prompt, or a camera that opted in) or records a suggestion an operator can apply. Off by default; uses AI credits within a daily cap. Every prompt change is kept in the camera's prompt history so the human prompt can be restored. Since 1.69.0 it also tunes each room's AI rules (`rooms.ai_rules`) the same way.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/agents/perception-coach` | Perception Coach status | settings:read | admin, operator | - | false |
| PATCH | `/api/v1/agents/perception-coach/settings` | Change the Perception Coach settings | settings:write | admin | - | false |
| GET | `/api/v1/agents/perception-coach/history` | Perception Coach prompt history | settings:read | admin, operator | - | false |
| POST | `/api/v1/cameras/{camera_id}/actions/apply-perception-coach` | Apply the Perception Coach suggestion | cameras:write | admin, operator | operator | false |
| POST | `/api/v1/cameras/{camera_id}/actions/revert-perception-coach` | Restore the human prompt | cameras:write | admin, operator | operator | false |
| POST | `/api/v1/rooms/{room_id}/actions/apply-perception-coach` | Apply the Perception Coach suggestion to a room | settings:write | admin, operator | - | false |
| POST | `/api/v1/rooms/{room_id}/actions/revert-perception-coach` | Restore the human room rules | settings:write | admin, operator | - | false |

## Memory

What Vigiora remembers about the calling user (API 1.65.0): durable facts learned from their Guardian chats, which they can list, correct and delete. Every call is limited to the caller's own facts.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/memory/facts` | List what Vigiora remembers about you | memory:read | admin, operator, viewer | - | false |
| GET | `/api/v1/memory/facts/{fact_id}` | Read one remembered fact | memory:read | admin, operator, viewer | - | false |
| PATCH | `/api/v1/memory/facts/{fact_id}` | Correct a remembered fact | memory:write | admin, operator, viewer | - | false |
| DELETE | `/api/v1/memory/facts/{fact_id}` | Forget a remembered fact | memory:write | admin, operator, viewer | - | false |

## Account

The caller's own sign-in security (API 1.107.0): two-factor sign-in with an authenticator app (status with `account:read`; turning it on or off and new recovery codes need a user session, never an API key) and the signed-in devices list (`account:read`, signing one out `account:write`). Every call is limited to the caller's own account. OAuth clients (MCP connections) are never granted the `account:*` scopes.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/account/two-factor` | Two-factor sign-in status | account:read | admin, operator, viewer | - | false |
| POST | `/api/v1/account/two-factor/actions/enrol` | Start turning two-factor sign-in on | session | admin, operator, viewer | - | unsupported |
| POST | `/api/v1/account/two-factor/actions/confirm` | Confirm two-factor sign-in with a first code | session | admin, operator, viewer | - | unsupported |
| POST | `/api/v1/account/two-factor/actions/regenerate-recovery-codes` | Get new recovery codes | session | admin, operator, viewer | - | unsupported |
| POST | `/api/v1/account/two-factor/actions/disable` | Turn two-factor sign-in off | session | admin, operator, viewer | - | unsupported |
| GET | `/api/v1/account/sessions` | List your signed-in devices | account:read | admin, operator, viewer | - | false |
| DELETE | `/api/v1/account/sessions/{session_id}` | Sign a device out | account:write | admin, operator, viewer | - | false |
| POST | `/api/v1/account/sessions/actions/revoke-others` | Sign out everywhere else | session | admin, operator, viewer | - | unsupported |

## Add-ons

Add-ons (API 1.104.0): the catalogue (Vigiora's own add-ons first, then the community's) with a hardware check against this server, the installed community add-ons with their progress, and install, update and remove. A community add-on runs in Docker on this server or on a remembered SSH machine, from the commit Vigiora reviewed, with an override the server writes (the author's compose file is never edited), and enrols with a token limited to its permissions. Paid community add-ons are listed but cannot be installed yet. Installing from a git address with no review (developer mode) is done from the web app only, as are add-ons asking for elevated access (both ask for the admin's password). Vigiora's built-in runners keep `/runners`. Alerts from add-ons (API 1.106.0): an add-on granted the `alerts:write` scope may report a detection through the HAL API (`POST /api/hal/events` with a `detection` object, not part of `/api/v1`), only on cameras it is assigned to, only on the label namespaces it declares in its manifest `labels` (`tamper:lens covered`), never a plain label or a namespace Vigiora owns (`face:`, `plate:`, `qr:`, `guardian:`, `analytics:` and others), without a picture, at most 30 a minute and 300 an hour. It is then an alert like any other: `GET /alerts`, `alert.created`, the camera's label alert rules and speakers. The alert's `addon` names the add-on; a camera label an add-on can only report as a result has `results_only: true`. Pictures (API 1.106.0): an add-on with `streams:read` gets one current frame of a camera it is assigned to from `GET /api/hal/frame` (HAL API, not part of `/api/v1`); go2rtc's RTSP restream is reachable only with host networking.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/addons` | Installed community add-ons | settings:read | admin | - | false |
| GET | `/api/v1/addons/catalog` | Add-on catalogue | settings:read | admin | - | false |
| GET | `/api/v1/addons/catalog/{addon_id}` | One add-on of the catalogue | settings:read | admin | - | false |
| POST | `/api/v1/addons/{addon_id}/install` | Install a catalogue add-on | settings:write | admin | - | unsupported |
| POST | `/api/v1/addons/{addon_id}/update` | Update an add-on | settings:write | admin | - | unsupported |
| DELETE | `/api/v1/addons/{addon_id}` | Remove an add-on | settings:write | admin | - | unsupported |

## Runners

GPU runners (API 1.60.0): the vision runners that run beside the server on a GPU machine (`runner-objects` finds any object, `runner-plates` reads number plates, `runner-face` recognises faces, `runner-vision` runs a LiquidAI vision model locally for the floor-plan scan, on a GPU or the CPU, `runner-robotnav` is the Robot navigation add-on for robot cameras, API 1.129.0). List them with the state of the on-device install and the runners that enrolled, and mint the one-time install token behind the copyable install command. The password-gated on-device install and the SSH install stay in the web app.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/runners` | GPU runners | settings:read | admin | - | false |
| POST | `/api/v1/runners/install-token` | Mint a runner install token | settings:write | admin | - | unsupported |

## Docs

This document.

| Method | Path | What it does | Scope | Roles | Camera | Idempotent |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/api/v1/openapi.yaml` | This document (YAML) | - | admin, operator, viewer | - | false |
| GET | `/api/v1/openapi.json` | This document (JSON) | - | admin, operator, viewer | - | false |
Request and response bodies, parameters and examples for each operation: https://vigiora.com/docs/developers/api-reference.md
