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

1
POST /device/get

Authorized User Role

1
user

Request Body

Field Type Required Role Notes
id string yes Device Claim ID.
accountId string owner Manager account ID. Required if using CloudAPI token.

Response

Field Type Notes
accessed date When the device was last accessed.
accountId string Owning manager account ID.
created date When the device was first claimed.
id string Device Claim ID.
productId string Builder Product ID to expedite checkin.
test boolean Device is for test purposes.
version string Firmware version.

Claim

Endpoint

1
POST /device/claim

Authorized User Role

1
claimDevice

Request Body

Field Type Required Notes
id string yes Device claim ID.

Response

The claimed device.

Field Type Notes
accessed date When the device was last accessed.
accountId string Owning manager account ID.
created date When the device was first claimed.
id string Device Claim ID.
productId string Builder Product ID to expedite checkin.
test boolean Device is for test purposes.
version string Firmware version.

Find

Find matching devices filtered by matching properties.

Endpoint

1
POST /device/find

Authorized User Role

1
user

Request Body

Field Type Required Role Notes
id string yes Device Claim ID.
accountId string owner Manager account ID. Required if using CloudAPI token.
productId string Product registration ID from the Builder product list.

Query String Options

Field Type Notes
filter string Full text string to filter for.
next object Pagination token for the next page.
prev object Pagination token for the previous page.
limit number Number of items to retrieve.
index string Database index to use.
exists boolean Set to true to require the item exists, otherwise set to null to perform an upsert.

Response

Paged response.

Field Type Notes
data array An array of devices owned by the user.
next string Paged cursor to use for the next page of items.
prev string Pages cursor to use for the previous page of items.

Device

An array of Device items.

Field Type Notes
accessed date When the device was last accessed.
accountId string Owning manager account ID.
created date When the device was first claimed.
id string Device Claim ID.
productId string Builder Product ID to expedite checkin.
test boolean Device is for test purposes.
version string Firmware version.

Remove

Endpoint

1
POST /device/remove

Authorized User Role

1
user

Request Body

Field Type Required Notes
id string yes Device claim ID.