Get Last Value of a Variable (by Device)

Retrieve the most recent value of a specific variable scoped to a device. Use Dynamic Fields (fields/omit) to trim the response. Equivalent to GET /api/v2.0/variables/{variable_id} only when the variable belongs to the device in the path — a mismatched pair returns 404. Unlike the flat route, this one accepts ~label for the variable.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Object id of the device, or ~label to address it by label.

string
required

Object id of the variable, or ~label to address it by label. Label addressing works here, but not on the flat /variables/{variable_id} route, because variable labels are unique per device rather than per account.

Query Params
string

Comma-separated list of fields to include. See Dynamic Fields.

string

Comma-separated list of fields to omit. See Dynamic Fields.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json