Skip to main content
POST
/
devices
/
{deviceId}
/
unlock
Unlock a device
curl --request POST \
  --url https://api.getprimo.com/devices/{deviceId}/unlock \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "platform": "ANDROID",
  "message": "<string>",
  "unlockPin": "<string>"
}
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Path Parameters

deviceId
string
required

Response

default - application/json
success
boolean
required
platform
enum<string>
required

The platform of the unlocked device

Available options:
ANDROID,
IOS,
MACOS,
WINDOWS,
LINUX,
CHROME_OS,
IPADOS,
UNKNOWN
message
string
required

A human-readable description of the unlock operation

unlockPin
string | null

Unlock PIN to enter on the device (macOS only). Null for platforms where unlock is handled remotely.