List a device's access grants
Dashboard-only
DeviceGrant), and use the Device Control endpoints.Includes grants scoped directly to this device and grants scoped to its whole project both apply.
Authorization
sessionAuth 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 (schedules, rules, grants, keys, device configuration) 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 endpoints are.
In: header
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/devices/dev_a1b2c3/grants"[ { "grantId": "string", "appliesVia": "device", "commands": [ "string" ], "scope": "READ", "expiresAt": "2019-08-24T14:15:22Z", "activeDays": [ 0 ], "activeFromMinute": 0, "activeToMinute": 0, "rateLimitPerMinute": 0, "createdAt": "2019-08-24T14:15:22Z", "subject": { "type": "apikey" } }]Grant an API key or team member access to a device POST
This is how an API key gets permission to call device commands it has none by default. Provide exactly one of `apiKeyId` or `membershipId`. Requires an Owner or Admin session; API keys cannot create grants for themselves or anyone else.
Revoke a grant DELETE
Next Page