nexalwarenexalwaredocs
API ReferenceDevice control

Read the most recent value per telemetry metric

GET
/api/v1/devices/{deviceId}/telemetry/latest

The quickest "current state" snapshot - one row per metric this device has ever reported, plus its relay state. Use this instead of /telemetry when you just need "what is this device's situation right now", not history.

Authorization

X-Api-Key<token>

A secret API key created on the dashboard (API Keys page). By itself it grants nothing - it must also have a DeviceGrant scoping it to the specific device(s) and command(s) it may call.

In: header

Path Parameters

deviceId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/devices/dev_a1b2c3/telemetry/latest"
{  "state": {    "relay": "ON",    "brightness": 80  },  "relayState": true,  "telemetry": [    {      "metric": "temperature",      "value": 21.4,      "valueText": null,      "unit": "celsius",      "recordedAt": "2024-11-19T10:05:00.000Z"    }  ]}