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 Method | URL |
---|---|
GET | https://industrial.api.ubidots.com/api/v2.0/organizations/<organization_key>/devices/ |
Path Parameters
Parameter | Type | Description |
---|---|---|
organization_key | String | The id or label of the Organization, label should use the prefix ~ |
Header
Parameter | Required? | Description |
---|---|---|
X-Auth-Token | Yes | Authentication Token of account |
$ curl -X GET 'https://industrial.api.ubidots.com/api/v2.0/organizations/<organization_key>/devices/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"url": "https://industrial.ubidots.com/api/v2.0/devices/631803722c3f16000d6f86e3",
"id": "631803722c3f16000d6f86e3",
"label": "3347",
"name": "3347",
"createdAt": "2022-09-07T02:35:30.497576Z",
"variablesCount": 5,
"lastActivity": 1663335764985
}
]
}
{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}
{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}
Response
An object with an array in the results
key containing all Devices of the specific organization.