Devices
Get Device State
Retrieve the current state of a device including online status, recording status, battery, and storage
GET
Documentation Index
Fetch the complete documentation index at: https://docs.bota.dev/llms.txt
Use this file to discover all available pages before exploring further.
The device’s unique identifier (e.g.,
dev_abc123).Response Fields
| Field | Type | Description |
|---|---|---|
device_id | string | The device’s unique identifier |
online | boolean | Whether the device is currently online and reachable |
recording.active | boolean | Whether the device is currently recording |
recording.recording_id | string | ID of the current recording (if active) |
recording.started_at | string | ISO 8601 timestamp when recording started |
recording.initiated_by | string | "local" (button press) or "remote" (API command) |
battery_percent | number | Battery level (0-100), null if unknown |
storage_used_mb | number | Storage used in MB, null if unknown |
storage_total_mb | number | Total storage in MB, null if unknown |
last_heartbeat_at | string | Last heartbeat timestamp from device |

