Get Last Value of a Variable

Retrieve the most recent value of a specific variable. Use Dynamic Fields (fields/omit) to trim the response.
Also accessible via GET /api/v2.0/devices/{device_id}/variables/{variable_id}.

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

Object id of the variable. This path does not accept a ~label: variable labels are unique per device rather than per account, so /variables/~temperature is rejected with 400 Validation ErrorLabel key is not allowed. To address a variable by label go through its device — /devices/{device_id}/variables/~{label}.

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