Skip to content

Device

The Device API manages device registation with the Builder.

When devices are first booted, they will "register" with the builder using their device ID (ClaimID). The device then remains under the management of the Builder until it is "claimed" by a user for management using the "claim" API.

When claimed, the device is redirected to the device cloud when it next invokes the "register" API.

Get

Endpoint

HTTP
POST /device/get

Authorized User Role

user

Request Body

FieldTypeRequiredNotes
idstringyesDevice Claim ID.

Response

FieldType
idstring
accountIdstring
managerAccountIdstring
cloudIdstring
productIdstring
testboolean

Find

Endpoint

HTTP
POST /device/find

Authorized User Role

user

Request Body

FieldType
idstring
cloudIdstring
productIdstring

Query String Options

FieldType
limitnumber
nextobject
prevobject

Response

Paged response.

FieldTypeNotes
dataarrayArray of items.
nextstringPaged cursor to use for the next page of items.
prevstringPages cursor to use for the previous page of items.

Device

An array of Device items.

FieldType
idstring
accountIdstring
managerAccountIdstring
cloudIdstring
productIdstring
testboolean

Register

Endpoint

HTTP
POST /device/register

Authorized User Role

public

Request Body

FieldTypeRequiredNotes
idstringyesDevice Claim ID.
accountstringManager Account ID if auto claiming.
cloudstringCloud ID if auto claiming.
productstringyesProduct ID Token.
testbooleanSet to true for test devices.
*any

Response

FieldTypeNotes
apistringAPI endpoint for the device cloud that claimed the device.
tokenstringAccess token for requests to the device cloud.
registeredbooleanSet to true when registered.
cloudTypestring
cloudNamestring
cloudRegionstring

Release

Endpoint

HTTP
POST /device/release

Authorized User Role

user

Request Body

FieldTypeRequiredNotes
idstringyesDevice claim ID.
callbackboolean
certArnstring

Remove

Endpoint

HTTP
POST /device/remove

Authorized User Role

admin

Request Body

FieldTypeRequiredNotes
idstringyesDevice claim ID.