Skip to main content

List Cameras

method
GET
GET /api/cameras
Enumerate all cameras connected via USB and network.
curl http://localhost:8080/api/cameras
cameras
array

Connect Camera

method
POST
POST /api/cameras//connection
Establish connection in the specified mode.
cameraId
string
required
Camera ID from discovery
mode
string
default:"remote"
Connection mode: remote, remote-transfer, or contents
reconnecting
string
on or off — auto-reconnect on disconnection
username
string
For network cameras
password
string
For network cameras
curl -X POST http://localhost:8080/api/cameras/D10F60149B0C/connection \
  -H "Content-Type: application/json" \
  -d '{"mode": "remote"}'

Connection Status

method
GET
GET /api/cameras//connection
Check whether a camera is currently connected.
curl http://localhost:8080/api/cameras/D10F60149B0C/connection

Disconnect Camera

method
DELETE
DELETE /api/cameras//connection
Disconnect a camera. Clears event callbacks and waits for clean disconnection.
curl -X DELETE http://localhost:8080/api/cameras/D10F60149B0C/connection