nexalwarenexalwaredocs
API ReferenceGrants

List a device's access grants

Dashboard-only

This mirrors what a human does from the Nexalware web app - it's not meant to be automated by a third-party integration, even though a session token from Log in can technically call it. If you're building an integration that controls devices, use an API key instead: have an Owner/Admin grant it access to a device (a DeviceGrant), and use the Device Control endpoints.
GET
/api/v1/devices/{deviceId}/grants

Includes grants scoped directly to this device, grants scoped to its whole project, and grants scoped to one sub-device behind it - all three apply.

Authorization

sessionAuth
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

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/devices/dev_a1b2c3/grants"
[  {    "grantId": "grt_x1y2z3",    "appliesVia": "device",    "subDevice": null,    "commands": [      "ON",      "OFF"    ],    "scope": "WRITE",    "expiresAt": null,    "activeDays": [],    "activeFromMinute": null,    "activeToMinute": null,    "rateLimitPerMinute": null,    "createdAt": "2024-11-01T09:00:00.000Z",    "subject": {      "type": "apikey"    }  }]