nexalwarenexalwaredocs
API ReferenceSub devices

Read a sub-device's telemetry history

GET
/api/v1/devices/{deviceId}/sub-devices/{subDeviceId}/telemetry

Authorization

AuthorizationBearer <token>

A session token for an existing account, obtained from POST /auth/login (see the Authentication endpoints) - not an API key. Endpoints marked with this scheme reject API key callers outright, regardless of what that key is granted. Outside the Authentication endpoints themselves, everything requiring this scheme manages dashboard resources (rules, grants, keys, device configuration, command catalogs) and mirrors what a human does in the Nexalware web app - it is not meant to be automated by a third-party integration the way the Device Control and Schedules endpoints are.

In: header

Path Parameters

deviceId*string
subDeviceId*string

Query Parameters

metric?string

Only return readings for this metric name, omit to get every metric this sub-device reports.

limit?integer

Max rows to return, 1-1000. Defaults to 100.

Range1 <= value <= 1000
Default100
since?|

Unix milliseconds - only return readings recorded at or after this time.

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/devices/dev_a1b2c3/sub-devices/sub_x1y2z3/telemetry?metric=power_draw&limit=50&since=1732000000000"
[  {    "metric": "power_draw",    "value": 4.2,    "valueText": null,    "unit": "watts",    "recordedAt": "2024-11-19T10:05:00.000Z"  }]