Skip to content

RUSEON Core API Documentation Hub ​

RUSEON Core provides a developer-friendly API suite designed for programmatic automation, third-party VMS integrations, AI computer vision pipelines, and web dashboards.


1. API Protocols Overview ​

ProtocolBase EndpointData FormatAuthenticationPrimary Use Case
REST API/api/v1/*JSONJWT BearerCamera CRUD, Users, Tags, Backups, Health
WebRTC WHEP/api/v1/webrtc/whepSDP (RFC 8866)Bearer Token / QueryUltra-low latency (<500ms) browser video
HLS API/api/v1/hls/*m3u8 / MPEG-TSOptional TokenLive & timeshift video streaming
Archive API/api/v1/archive/*JSON & MP4JWT BearerHistorical timeline, segments, MP4 exports
gRPC Pipelinelocalhost:50051Protobuf (v3)mTLS / MetadataAI bounding boxes, analytics, event streams
Swagger UI/swagger/index.htmlOpenAPI 3.0Web UI / BearerInteractive API testing and discovery

2. Quick Authentication Example ​

Obtain an access token:

bash
curl -X POST http://localhost:8080/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"username": "admin", "password": "your_password"}'

Response:

json
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_at": 1786888800,
  "user": {
    "id": "usr_01",
    "username": "admin",
    "role": "admin"
  }
}

Use the token in subsequent API requests:

bash
curl -H "Authorization: Bearer <TOKEN>" http://localhost:8080/api/v1/cameras

Released under the MIT License.