Skip to content

Complete REST API Reference & Endpoints Matrix ​

RUSEON Core provides a high-throughput REST API for camera control, stream routing, archive playback, user RBAC, and telemetry.


1. Authentication & System Health ​

EndpointMethodRole RequiredDescription
POST /api/loginPOSTPublicAuthenticate user credentials and receive JWT access token
GET /api/statsGETviewer, operator, adminReal-time memory, active cameras, and global FPS statistics
GET /api/logs/streamGEToperator, adminReal-time Server-Sent Events (SSE) log stream
GET /livezGETPublicLiveness probe (HTTP 200 OK)
GET /readyzGETPublicReadiness probe (BadgerDB & engine operational)
GET /metricsGETPublic / ScraperPrometheus scraping endpoint

2. Camera Management Endpoints ​

EndpointMethodRole RequiredDescription
GET /api/camerasGETviewer, operator, adminList all configured camera streams and runtime stats
POST /api/camerasPOSToperator, admin, serviceRegister a new RTSP camera stream
PUT /api/cameras/:idPUToperator, admin, serviceUpdate camera settings & restart ingest pipeline
DELETE /api/cameras/:idDELETEoperator, admin, serviceStop and delete camera record
GET /api/cameras/:id/stream-tokenGETviewer, operator, adminGenerate 60-second short-lived stream token

3. Real-Time Streaming & Archive Playback ​

EndpointMethodRole RequiredDescription
POST /stream/webrtc/whep/:idPOSTPublic / TokenWebRTC WHEP SDP offer/answer exchange
GET /stream/ws/:idGETPublic / TokenWebCodecs low-latency binary WebSocket stream
GET /stream/hls/:id/index.m3u8GETPublic / TokenMaster HLS live manifest
GET /stream/hls/:id/stream.m3u8GETPublic / TokenVideo media playlist
GET /stream/hls/:id/subs.m3u8GETPublic / TokenWebVTT subtitle track with AI metadata
GET /stream/hls/:id/:segmentGETPublic / TokenLive MPEG-TS media chunk
GET /api/cameras/:id/archiveGETviewer, operator, adminList recorded fMP4 timeline intervals
GET /api/cameras/:id/exportGETviewer, operator, adminStream seamless MP4 clip export
GET /hls/:id/archive.m3u8GETPublic / TokenOn-demand archive HLS playlist (?file=...)
GET /hls/:id/segment.tsGETPublic / TokenOn-demand archive video segment

4. Tags, Folders, Users & Backups ​

EndpointMethodRole RequiredDescription
GET /api/tagsGETAuthenticatedList system tags
POST /api/tagsPOSToperator, adminCreate system tag ({id, name, color})
DELETE /api/tags/:idDELETEoperator, adminDelete tag by ID
GET /api/foldersGETAuthenticatedList folder hierarchy
POST /api/foldersPOSToperator, adminCreate folder ({id, name, parent_id})
DELETE /api/folders/:idDELETEoperator, adminDelete folder by ID
GET /api/usersGETadminList all users and assigned roles
POST /api/usersPOSTadminCreate new user account
PUT /api/users/:usernamePUTadminUpdate user password or role
DELETE /api/users/:usernameDELETEadminDelete user account
GET /api/system/backup/exportGETadminExport complete database JSON backup
POST /api/system/backup/importPOSTadminImport and restore database JSON snapshot
GET /models/:filenameGETPublicDownload ONNX AI weights with disk caching

Released under the MIT License.