Skip to content
Docs

List Device Variables

Returns a paginated list of variables configured for the specified device.

GET /rest/v1/workspaces/{workspace_uuid}/devices/{device_uuid}/variables
HeaderValue
AuthorizationBearer <YOUR_API_KEY>
Content-Typeapplication/json
ParameterTypeRequiredDescription
workspace_uuidStringYesUnique identifier of the workspace.
device_uuidStringYesUnique identifier of the device.
ParameterTypeRequiredDescription
searchStringNoSearch variables by name or identifier.
pageIntegerNoPage number to retrieve. Default: 1.
per_pageIntegerNoNumber of variables to return per page. Default: 20. Maximum: 50.
GET /rest/v1/workspaces/01kxcxpcgvdm1pacpfv1wxqqeh/devices/01kxcy4ga5350mb3jwbp9f7hj4/variables?page=1&per_page=20
Authorization: Bearer <YOUR_API_KEY>

Status: 200 OK

{
"data": [
{
"uuid": "01kx5h8jhzvvnzwcx9f6sqp3x1",
"name_label": "PUMP_RUNNING",
"identifier": "PUMP_RUNNING",
"type": "Actual",
"datatype": "Boolean",
"unit": null,
"description": null,
"pre_save_script": null,
"validation_script": null,
"created_at": "2026-07-10T08:10:48.768472Z",
"updated_at": "2026-07-10T08:10:48.768472Z",
"decimal_precision": 5,
"widget_color": "#FFFF00",
"derivation_script": null
},
{
"uuid": "01kx5h8jhts452v0g265zpa279",
"name_label": "VOLTAGE",
"identifier": "VOLTAGE",
"type": "Actual",
"datatype": "Float/Number",
"unit": null,
"description": null,
"pre_save_script": null,
"validation_script": null,
"created_at": "2026-07-10T08:10:48.768001Z",
"updated_at": "2026-07-10T08:10:48.768001Z",
"decimal_precision": 5,
"widget_color": "#FF1493",
"derivation_script": null
}
],
"meta": {
"count": 2,
"message": "Variables fetched successfully",
"page": 1,
"per_page": 20,
"success": true
}
}
FieldDescription
uuidUnique identifier of the variable.
name_labelDisplay name of the variable.
identifierUnique identifier used to reference the variable.
typeType of the variable (for example, Actual or Derived).
datatypeData type of the variable (for example, Boolean, Integer, Float/Number, or String).
unitEngineering unit configured for the variable.
descriptionDescription of the variable.
pre_save_scriptScript executed before incoming values are stored.
validation_scriptScript used to validate incoming values before they are accepted.
decimal_precisionNumber of decimal places used when displaying numeric values.
widget_colorDefault color associated with the variable in dashboards and widgets.
derivation_scriptScript used to calculate the value of derived variables.
created_atTimestamp when the variable was created (UTC).
updated_atTimestamp of the most recent update (UTC).
FieldDescription
countTotal number of variables returned in the current response.
pageCurrent page number.
per_pageMaximum number of records returned per page.