Devices
Read and manage devices registered to your tenant. Device registration and initial API key issuance are handled through the dashboard.
Note: Devices are registered and their one-time API key is issued through the dashboard. The key is shown only once and cannot be retrieved again.
/api/tenant/devicesList all devices registered to your tenant.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Required | Bearer <access_token> — requires devices:read scope |
AuthorizationstringRequiredBearer <access_token> — requires devices:read scope
Response
{
"data": [
{
"id": "dev_abc123",
"name": "Store Scanner 1",
"status": "active",
"locationIds": ["loc_xyz"],
"pimEnabled": false,
"pimSegmentIds": [],
"createdAt": "2024-01-15T10:00:00.000Z"
}
]
}/api/tenant/devices/:idRetrieve a single device by ID.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Required | Bearer <access_token> — requires devices:read scope |
AuthorizationstringRequiredBearer <access_token> — requires devices:read scope
Response
{
"data": {
"id": "dev_abc123",
"name": "Store Scanner 1",
"status": "active",
"locationIds": ["loc_xyz"],
"pimEnabled": false,
"pimSegmentIds": [],
"createdAt": "2024-01-15T10:00:00.000Z"
}
}/api/tenant/devices/:idUpdate device properties. All fields are optional.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Required | Bearer <access_token> — requires admin scope |
| Content-Type | string | Required | application/json |
AuthorizationstringRequiredBearer <access_token> — requires admin scope
Content-TypestringRequiredapplication/json
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | Display name for the device |
| locationIds | string[] | Optional | List of location IDs to assign the device to |
| status | string | Optional | "active" | "inactive" |
| pimEnabled | boolean | Optional | Whether PIM integration is enabled for this device |
| pimSegmentIds | string[] | Optional | PIM segment IDs to associate with this device |
namestringOptionalDisplay name for the device
locationIdsstring[]OptionalList of location IDs to assign the device to
statusstringOptional"active" | "inactive"
pimEnabledbooleanOptionalWhether PIM integration is enabled for this device
pimSegmentIdsstring[]OptionalPIM segment IDs to associate with this device
Response
{
"data": {
"id": "dev_abc123",
"name": "Store Scanner 1",
"status": "active",
"locationIds": ["loc_xyz"],
"pimEnabled": true,
"pimSegmentIds": ["seg_001"],
"createdAt": "2024-01-15T10:00:00.000Z"
}
}/api/tenant/devices/:idRevoke a device. Sets the device status to 'revoked' — the device will no longer be able to authenticate or perform verifications.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Required | Bearer <access_token> — requires admin scope |
AuthorizationstringRequiredBearer <access_token> — requires admin scope
Response
{ "success": true }