IoT Stadium

API Documentation

Device

Device - Get Devices (Device List)

Get the list of your registered devices

Get
https://api.iotstadium.com/ext/devices
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }
{
    "message": "success",
    "code": 200,
    "data": {
        "devices": [
            {
                "id": 1390,
                "device_name": "Device Name 1",
                "created_at": "2024-01-01 01:00:00",
                "last_seen": "2024-01-01 13:00:00",
                "deveui": "",
                "device_type": {
                    "id": 292,
                    "device_type_name": "Devive Type Name",
                    "is_predefined": 0,
                    "is_image_model_type": 0
                },
                "location_id": null,
                "device_network_id": 1,
                "device_connectivity_type_id": 1,
                "device_type_id": 292,
                "is_collection": 0,
                "access_type": null,
                "location_custom_field": [],
                "location": null,
                "device_connectivity_type": {
                    "id": 1,
                    "name": "Device Connectivity Type"
                },
                "device_network": {
                    "id": 1,
                    "name": "Device Network"
                }
            },
            {
                "id": 1212,
                "device_name": "Device Name 2",
                "created_at": "2024-01-01 01:00:00",
                "last_seen": "2024-01-01 13:00:00",
                "deveui": "",
                "device_type": null,
                "location_id": null,
                "device_network_id": 2,
                "device_connectivity_type_id": 4,
                "device_type_id": 0,
                "is_collection": 0,
                "access_type": null,
                "location_custom_field": [],
                "location": null,
                "device_connectivity_type": {
                    "id": 4,
                    "name": "Device Connectivity Type"
                },
                "device_network": {
                    "id": 2,
                    "name": "Device Network"
                }
            }
        ]
    }
}
{
    "message": "Unauthorized (token isn’t provided, or is invalid)",
    "code": 401,
    "errors": {
        "message": "Unauthorized (token isn’t provided, or is invalid)",
        "field": "iot API"
    }
}