IoT Stadium

API Documentation

Device

Device - GET Get Device Group

Retrieves groups or categories that devices can belong to, useful for organizing and filtering.

Get
https://api.iotstadium.com/ext/devices-group-dropdown
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }
{
    "message": "success",
    "code": 200,
    "data": {
        "devices": [
            {
                "id": 52,
                "group_name": "Room 1",
                "description": null
            },
            {
                "id": 24,
                "group_name": "Lamp 1st Floor",
                "description": null
            },
            {
                "id": 25,
                "group_name": "Water Sensor",
                "description": "All water sensor in GK8"
            },
            {
                "id": 36,
                "group_name": "Electric Sensor",
                "description": " All electrical sensor in GK8"
            },
            {
                "id": 42,
                "group_name": "Group 1",
                "description": "group 1"
            },
            {
                "id": 43,
                "group_name": "Group 2",
                "description": "group 2"
            },
        ]
    }
}
{
    "message": "Unauthorized (token isn’t provided, or is invalid)",
    "code": 401,
    "errors": {
        "message": "Unauthorized (token isn’t provided, or is invalid)",
        "field": "iot API"
    }
}