POST/api/devices

Claim an unclaimed device

Links a device that has not been claimed yet (a new device, or a QR code scan) to this account. Sets up the starter playlist item the first time. friendly_id is printed on the device screen during setup.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 body field
friendly_idstringrequired
The code shown on the device during setup

5 status codes
200Claimed
dataobjectoptional
400friendly_id is missing
errorstringoptional
401Unauthorized
errorstringoptional
422A concurrent claim already took the device
errorstringoptional
429Too many failed claims from this account or address
errorstringoptional

Error handling

A 400 is returned: friendly_id is missing. A 401 is returned: Unauthorized. A 422 is returned: A concurrent claim already took the device. A 429 is returned: Too many failed claims from this account or address.