Skip to main content
Connect to live device updates over WebSocket. Requires a valid API key (user or admin). You can only subscribe to devices within your access scope.

Connection

Pass your API key via the api_key query parameter, or via the X-API-Key header if your WebSocket client supports custom headers. Unauthorized connections receive 401 Unauthorized and the connection is rejected. On successful connection, the server sends:

Client messages

Subscribe to devices

Response:

Unsubscribe from devices

Response:

Server messages

Device data update

Telemetry data received from a device. The payload object contains only the fields present in that particular update, not the full device state.

Device status update

Online/offline status change.

Device unlocked

Sent when a device is unlocked via RFID, keypad, key, or remote command.

Device locked

Error messages

Example