Skip to main content
GET
/
devices
/
{id}
/
battery
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://your-api-host/devices/ABC123/battery?limit=50"
[
  {
    "_id": "...",
    "hardware_id": "ABC123",
    "timestamp": "2025-12-17T10:30:00.000Z",
    "battery_voltage": 12.4
  }
]
Returns battery telemetry records for a device. The id path parameter accepts either short_id or hardware_id.

Path parameters

id
string
required
Device identifier — either short_id or hardware_id.

Query parameters

limit
number
default:"100"
Max records to return. Ignored when from/to are provided.
from
string
ISO 8601 date string (start of range). Required together with to.
to
string
ISO 8601 date string (end of range). Required together with from.

Response

Returns an array of battery telemetry records.
[]
object[]
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://your-api-host/devices/ABC123/battery?limit=50"
[
  {
    "_id": "...",
    "hardware_id": "ABC123",
    "timestamp": "2025-12-17T10:30:00.000Z",
    "battery_voltage": 12.4
  }
]