Skip to main content
GET
curl

Authorizations

x-api-key
string
header
required

Path Parameters

deviceId
string
required

The unique identifier for the battery device.

Example:

"device_abc123"

Query Parameters

expedite
boolean

Use a shorter cache lifetime, subject to manufacturer read limits. Check sync.expeditedRefetchAfter for the earliest known refresh time.

Example:

true

Response

Battery state retrieved successfully.

success
boolean
required

Always true for success responses.

data
Battery Response · object
required

Carries nullable state (status, level, capacity, charge/discharge rates), saved model and reading sync info, the device's writable settings, and the per-canonical-command commands map. The schema enumerates every canonical command, parameter, and setting because the response shape is uniform across OEMs, but capabilities are presence-based: a real device only exposes the subset its OEM declares. A field is present if the device supports it, absent if it does not.

meta
Response Meta · object
required

Metadata attached to every response: the request identifier, the serving environment, the build timestamp, and the server-side latency.