Get all Variables

This endpoint retrieves all Variables.


To retrieve all Variables please make a GET request to the following URL:


To retrieve all Variables of a Device please make a GET request to the following URL:


Query Parameter

tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.
pageNumberPaginationReturns the corresponding page of the result
page_sizeNumberPaginationNumber of items per page, if not provided takes default values of 50 (for variables 200)
created_atStringSortSort all Variables based on date created. Default descending.
labelStringSortSort by label
nameStringSortSort by name
fieldsComma separated listDynamic FieldsSpecify the fields that should be obtained in the response object.
searchStringSearchAllows to search on the following fields with one request label, name, description, username, firstName, lastName
idStringFilterFilter by id
labelStringFilterFilter by label
nameStringFilterFilter by name
descriptionStringFilterFilter by description
tagsArrayFilterFilter by tags
createdAtDateFilterFilter by date created
propertiesJsonFilterFilter by properties
unitStringFilterFilter by unit
deviceRelated Device FilterRelated FilterFilter by Related Device Filter (device__<device_attribute>__<filter>)
lastActivityIntegerFilterFilter by last activity


lastActivity only for Get All Variables by Device Endpoint

Please note: The query parameter lastActivity is only available for the endpoint
Get All Variables by Device<device_key>/variables/


X-Auth-TokenYesAuthentication Token of account
$ curl -X GET '' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
            "createdAt": "2019-12-18T14:38:38.354415Z",
            "syntheticExpression": "",
            "description": "",
            "device": {
                "id": "6e309da44fc8455a9cceb5aa",
                "label": "first-device",
                "name": "First Device",
                "url": ""
            "icon": "",
            "id": "781b33e657aa5dfa39e69391",
            "label": "first-variable",
            "lastActivity": null,
            "lastValue": {},
            "name": "First Variable",
            "properties": {
              	"any": "thing"
            "tags": [],
            "type": "raw",
            "unit": null,
            "url": "",
            "valuesUrl": ""
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."


An object with an array results containing all Variables.