Skip to content

Device

Device Management API.

When devices are initialized with the Ioto agent, they will "register" with the Builder service using their device ID (ClaimID) at https://admin.embedthis.com/api. The device registration API is part of the Builder API. See Device Registration.

Once registered, the device then remains under the management of the Builder until it is "claimed" by a user for management using the "Device 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

FieldTypeRequiredRoleNotes
idstringyesDevice Claim ID.
accountIdstringownerManager account ID. Required if using CloudAPI token.

Response

FieldTypeNotes
accesseddateWhen the device was last accessed.
accountIdstringOwning manager account ID.
createddateWhen the device was first claimed.
idstringDevice Claim ID.
productstringBuilder Product name.
productIdstringBuilder Product ID.
testbooleanDevice is for test purposes.
versionstringFirmware version.
checkedstringChecked version.

Claim

Endpoint

HTTP
POST /device/claim

Authorized User Role

claimDevice

Request Body

FieldTypeRequiredNotes
idstringyesDevice claim ID.

Response

The claimed device.

FieldTypeNotes
accesseddateWhen the device was last accessed.
accountIdstringOwning manager account ID.
createddateWhen the device was first claimed.
idstringDevice Claim ID.
productstringBuilder Product name.
productIdstringBuilder Product ID.
testbooleanDevice is for test purposes.
versionstringFirmware version.
checkedstringChecked version.

Find

Find matching devices filtered by matching properties.

Endpoint

HTTP
POST /device/find

Authorized User Role

user

Request Body

FieldTypeRoleNotes
idstringDevice Claim ID.
accountIdstringownerManager account ID. Required if using CloudAPI token.
productIdstringProduct registration ID from the Builder product list.

Query String Options

FieldTypeNotes
filterstringFull text string to filter for.
nextobjectPagination token for the next page.
prevobjectPagination token for the previous page.
limitnumberNumber of items to retrieve.
indexstringDatabase index to use.
existsbooleanSet to true to require the item exists, otherwise set to null to perform an upsert.

Response

Paged response.

FieldTypeNotes
dataarrayAn array of devices owned by the user.
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.

FieldTypeNotes
accesseddateWhen the device was last accessed.
accountIdstringOwning manager account ID.
createddateWhen the device was first claimed.
idstringDevice Claim ID.
productstringBuilder Product name.
productIdstringBuilder Product ID.
testbooleanDevice is for test purposes.
versionstringFirmware version.
checkedstringChecked version.

Remove

Endpoint

HTTP
POST /device/remove

Authorized User Role

user

Request Body

FieldTypeRequiredNotes
idstringyesDevice claim ID.

Response

FieldTypeNotes
accesseddateWhen the device was last accessed.
accountIdstringOwning manager account ID.
createddateWhen the device was first claimed.
idstringDevice Claim ID.
productstringBuilder Product name.
productIdstringBuilder Product ID.
testbooleanDevice is for test purposes.
versionstringFirmware version.
checkedstringChecked version.