Get Device Last Values

This endpoint retrieves all of a Device's last values

Request

To retrieve all a Device's last values please make a GET request to the following URL:

HTTP MethodURL
GEThttps://industrial.api.ubidots.com/api/v2.0/devices/<device_key>/_/values/last

Path Parameters

ParameterTypeDescription
device_keyStringThe id or label of the Device, label should use the prefix ~

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ curl -X GET 'https://industrial.api.ubidots.com/api/v2.0/devices/<device_key>/_/values/last' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
		"humidity": {
		"value": 59.0,
		"timestamp": 1649867634000,
		"context": {},
		"created_at": 1649867635757
	},
		"clouds": {
		"value": 75.0,
		"timestamp": 1649867634000,
		"context": {},
		"created_at": 1649867635757
	},
		"pressure": {
		"value": 1027.0,
		"timestamp": 1649867634000,
		"context": {},
		"created_at": 1649867635757
	},
	"wind_speed": {
		"value": 3.6,
		"timestamp": 1649867634000,
		"context": {},
		"created_at": 1649867635757
	}
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
	"code": 401002,
	"message": "Incorrect authentication credentials."
}

Response

Returns an object containing all Device last values.