Authentication
Posts
Update Device Status
POST
https://api.zira.us/public/devices/status/{id}
Description
Use this endpoint when an integration needs to report device health or operational state for a specific CV device.
| Property | Required | Type | Example | Description |
|---|---|---|---|---|
| status | Required | object | { "battery": 82, "onLine": true, ... } | The device’s current health and operational state. Its fields are listed below. |
| status.battery | Optional | number | 82 | Battery charge as a percentage. A low value raises an alert unless isCharging is true. |
| status.isCharging | Optional | boolean | true | Whether the device is currently charging. |
| status.onLine | Optional | boolean | true | Whether the device can reach Zira. |
| status.deviceOn | Optional | boolean | true | Whether the device itself is powered on and running. |
| status.cameraOn | Optional | boolean | true | Whether the camera is active. |
| status.wifiConnected | Optional | boolean | true | Whether Wi-Fi is connected. Send at least one connected network flag. |
| status.cellularConnected | Optional | boolean | false | Whether a cellular connection is up. |
| status.ethernetConnected | Optional | boolean | false | Whether a wired connection is up. |
| status.temperature | Optional | number | 31.5 | Device temperature in °C. A high value raises an alert. |
| status.version | Optional | string | 2.14.0 | Software version running on the device. |