Sentinel API overview

REST resources and the live event WebSocket.

Sentinel Updated 1 min read

All endpoints except sign-in require Authorization: Bearer <token>. Obtain a token from POST /api/auth/login and renew it with POST /api/auth/refresh.

AreaEndpoints
CamerasGET/POST /api/cameras, PATCH/DELETE /api/cameras/{id}
EventsGET /api/events, PATCH /api/events/{id}
CasesGET/POST /api/cases, PUT/PATCH /api/cases/{id}, case notes
Face watchlistGET/POST /api/watchlist, DELETE /api/watchlist/{id}; POST /api/face/enroll, POST /api/face/search
Vehicles (ANPR)GET /api/vehicles, GET/POST /api/vehicles/watchlist
PersonsGET /api/persons
Recordings and evidenceGET /api/recordings, GET/POST /api/evidence
ReportsGET /api/reports, POST /api/reports/generate
AssistantPOST /api/llm/chat, GET /api/llm/models
SystemGET /api/stats, GET /api/system/health, GET /api/system/diagnostics, GET /api/audit-logs, GET/PUT /api/settings
StreamsGET /api/mediamtx/paths/, POST /api/mediamtx/add

Live events

Subscribe to WS /ws/events for a real-time feed of security events.

TOKEN=$(curl -s -X POST https://sentinel.example/api/auth/login \
  -H 'Content-Type: application/json' \
  -d '{"username":"operator","password":"<password>"}' | jq -r .data.token)
curl -s https://sentinel.example/api/cameras -H "Authorization: Bearer $TOKEN"