Skip to main content

Quarantine a lost or compromised device

When a device is lost, stolen, or compromised, you can act on it immediately with device actions. Like user actions, these apply to the live device at once: no draft, no publish. See Direct actions for the contrast with policy.

Use this when: a device must be suspended, archived, or removed immediately (lost laptop, compromised endpoint, decommissioning).

Prerequisites: a Super User service account and the environment variables from Getting started.

The device actions​

All are POST calls that identify the target device(s) by ID, take effect immediately, and return 200.

GoalEndpointEffect
Suspend access nowPOST /seb-api/v1/devices/suspendSuspends the device.
Restore accessPOST /seb-api/v1/devices/resumeResumes a suspended device.
Archive a devicePOST /seb-api/v1/devices/archiveMoves the device to archived state.
Restore an archived devicePOST /seb-api/v1/devices/restoreRestores an archived device.
Remove permanentlyPOST /seb-api/v1/devices/deletePermanently deletes the device.
Invalidate sessionsPOST /seb-api/v1/devices/force-reauthForces re-authentication on the device.

Suspend a device immediately​

curl -sS -X POST "$PB_API_BASE/devices/suspend" \
-H "Authorization: Bearer $PB_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "deviceIds": ["0DEEXAMPLELOSTLAPTOPXXXXXXX"] }'

Response (200):

{ "suspendedDeviceIds": ["0DEEXAMPLELOSTLAPTOPXXXXXXX"], "message": "1 devices suspended successfully" }

Decommission a device​

To retire a device permanently, resume it first if it is suspended, then delete it:

curl -sS -X POST "$PB_API_BASE/devices/resume" \
-H "Authorization: Bearer $PB_TOKEN" -H "Content-Type: application/json" \
-d '{ "deviceIds": ["0DEEXAMPLELOSTLAPTOPXXXXXXX"] }'

curl -sS -X POST "$PB_API_BASE/devices/delete" \
-H "Authorization: Bearer $PB_TOKEN" -H "Content-Type: application/json" \
-d '{ "deviceIds": ["0DEEXAMPLELOSTLAPTOPXXXXXXX"] }'

Each action returns 200 with a summary message, for example:

{ "message": "1 devices deleted successfully" }
caution

A suspended device must be resumed before it can be deleted, and delete is permanent.