Get all Devices of Organization

This endpoint retrieves all Devices of a specific Organization.

Request

To retrieve all Devices of a specific Organization please make a GET request to the following URL:

HTTP MethodURL
GEThttps://nanoview-api.wellairsolutions.com/api/v2.0/organizations/<organization_key>/devices/

Path Parameters

ParameterTypeDescription
organization_keyStringThe ID or label of the Organization, label should use the prefix ~

Query Parameters

ParameterTypeRequired?Description
scopeStringNodirect (default) returns only the Devices assigned directly to the Organization. subtree also returns the Devices of every Organization nested below it, and adds organization to each Device
organization__tags__containsStringNoOnly Devices whose Organization has this tag. With scope=subtree it selects the Devices of the tagged descendants, for example every Device in a space
pageNumberNoPage number
page_sizeNumberNoNumber of items per page, up to 200. Defaults to 50

The Device filters and sort_by work with both scopes. The list only contains the Devices the caller can see: an End User gets the Devices of the Organizations their role reaches, without an error for the rest. An End User can also use any Organization nested below the ones they belong to as organization_key.

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ curl -X GET 'https://nanoview-api.wellairsolutions.com/api/v2.0/organizations/<organization_key>/devices/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "url": "https://nanoview.wellairsolutions.com/api/v2.0/devices/631803722c3f16000d6f86e3",
      "id": "631803722c3f16000d6f86e3",
      "label": "3347",
      "name": "3347",
      "createdAt": "2022-09-07T02:35:30.497576Z",
      "variablesCount": 5,
      "lastActivity": 1663335764985
    }
  ]
}
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "url": "https://nanoview-api.wellairsolutions.com/api/v2.0/devices/64a1b2c3d4e5f60009876544/",
      "id": "64a1b2c3d4e5f60009876544",
      "label": "sensor-0042",
      "name": "Room 101 sensor",
      "createdAt": "2026-09-01T12:00:00Z",
      "variablesCount": 2,
      "lastActivity": 1763894400000,
      "organization": {
        "id": "64a1b2c3d4e5f60001234571",
        "label": "north-tower-room-101",
        "tags": ["space"]
      }
    }
  ]
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        "scope": ["\"everything\" is not a valid choice."]
    }
}

Response

An object with an array in the results key containing all Devices of the specific organization.

With scope=subtree, each Device appears once and carries organization: the id, label and tags of the Organization that holds it directly.