Manage Devices
These routes provide access to a user’s devices, supporting POST and DELETE methods for individual devices. They return detailed information including device properties.
GET /user/device
This route fetches the list of the all devices associated with the account.
- Example response:
{
"errors": [],
"debug": [],
"meta": [],
"data": [
"1a2b3c4d5e6f0000",
"1a2b3c4d5e6f0001",
"1a2b3c4d5e6f0002",
"1a2b3c4d5e6f0003",
"1a2b3c4d5e6f0006",
"1a2b3c4d5e6f0007",
"1a2b3c4d5e6f0008",
"1a2b3c4d5e6f0009",
"9f8e7d6c5b4a3210",
"abcdabcdabcdabcd",
"0019c30000021132",
"0019c30000021613",
"0019c3000002362a",
"0019c30000026595",
"0019c30000026e93",
"0019c30000026ea1",
"0019c30000027731",
"0051d3fffe991953",
"0051d3fffe992b5b",
"0051d3fffe993e36",
"0051d3fffe995040",
"0051d3fffe996473",
"0051d3fffe99acc9"
],
"success": true
}
GET /user/device/autocomplete
This route retrieves a list of devices associated with the current user, filtered based on a partial search query. It is typically used to provide autocomplete suggestions when typing a device name, ID, or other identifying information in a search or selection field.
- Example response:
{
"errors": [],
"debug": [],
"meta": [],
"data": [
"a1b2c3d4e5f60001",
"b3c4d5e6f7a80002",
"c5d6e7f8a9b10003",
"d7e8f9a0b1c20004",
"e9f0a1b2c3d40005",
"f1a2b3c4d5e60006",
"a3b4c5d6e7f80007",
"b5c6d7e8f9a90008",
"c7d8e9f0a1b20009",
"d9e0f1a2b3c4000a"
],
"success": true
}
POST /user/device/{eui}
This route allows a user to register a new device by providing its EUI through the API. It adds the device to the user’s account and enables subsequent management via the system.
DELETE /user/device/{eui}
This route allows users to delete a device from their IoT Wonderland account via the API.
GET user/device/result/{eui}/{uid}
This API route checks whether a specific user (identified by their UID) is associated with a given device (identified by its EUI) and returns a confirmation result.
- Example response:
{
"errors": [],
"debug": [],
"meta": [],
"data": {
"result": "25430"
},
"success": true
}