Request #
To retrieve a device, please make a GET request to the following URL:
https://industrial.api.ubidots.com/api/v2.0/devices/<device_key>/
Path Parameters #
Parameter | Type | Description |
---|---|---|
device_key | String | The id or label of the Device, label should use the prefix ~ |
Query Parameters #
Parameter | Type | Use | Description |
---|---|---|---|
fields | Comma separated list | Dynamic Fields | Specify the fields that should be obtained in the response object |
Header #
Parameter | Required | Description |
---|---|---|
X-Auth-Header | Yes | Authentication Token of account |
Example:
https://industrial.api.ubidots.com/api/v2.0/devices/61fc258dd4ffae5290231519
Response #
Returns a device object with the requested device.
{
"properties": {
"_location_fixed": {
"lat": 6.2486,
"lng": 75.5742
}
},
"createdAt": "2019-11-25T19:35:08.975270Z",
"description": "some description",
"id": "6e309da44fc8455a9cceb5aa",
"isActive": true,
"label": "first-device",
"lastActivity": null,
"name": "First Device",
"organization": {
"id": "af92e4c82bf1d39cc21882f5b",
"label": "my-first-customer",
"name": "My First Customer",
"url": "http://industrial.ubidots.com/api/v2.0/organizations/af92e4c82bf1d39cc21882f5b"
},
,
"tags": ["first"],
"url": "http://industrial.ubidots.com/api/v2.0/devices/6e309da44fc8455a9cceb5aa",
"variables": "http://industrial.ubidots.com/api/v2.0/devices/6e309da44fc8455a9cceb5aa/variables",
"variablesNumber": 1
}