Get Device of Device Group

This endpoints retrieves a specific Device from a Device Group.

Request

To retrieve a single Device from a Device Group please make a GET request to the following URL:

HTTP MethodURL
GEThttps://industrial.api.ubidots.com/api/v2.0/device_groups/<device_group_key>/devices/<device_key>/

Path Parameters

ParameterTypeDescription
<device_group_key>StringThe id or label of the Device Group, label should use the prefix ~
<device_key>StringThe id or label of the Device, label should use the prefix ~

Header

ParameterRequired?Description
X-Auth-HeaderYesAuthentication Token of account
$ curl -X GET 'https://industrial.api.ubidots.com/api/v2.0/device_groups/<device_group_key>/devices/<device_key>/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'
{
    "url": "https://industrial.api.ubidots.com/api/v2.0/devices/5e1c8d9789f9bd33017e05e5",
    "id": "5e1c8d9789f9bd33017e05e5",
    "label": "test",
    "name": "test"
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}

Response

Returns a Device object with the requested Device from the Organization provided.