nexalwarenexalwaredocs
API ReferenceDevice control

Shorthand for sending the ON command

POST
/api/v1/devices/{deviceId}/command/on

Authorization

X-Api-Key<token>

A secret API key created on the dashboard (Settings → API Keys). 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

application/json

curl -X POST "https://example.com/api/v1/devices/string/command/on"
{  "ok": true}