IoT Stadium

API Documentation

Device

Device - POST Device Token

Generates an access token specific to a device for secure communication with the platform.

Post
https://api.iotstadium.com/ext/devices/:id/token
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }
'https://api.iotstadium.com/ext/devices/551/token'                                            
{
    "message": "Success, Token : s2RYhQFP778gyRGLGOv7HKhLxHKlKG5ywKJeqvkozuX2vw77ypQFHg2saAwrqLEhFGpOFMWsLevDAj9H",
    "code": 200,
    "data": {
        "message": "Success, Token : s2RYhQFP778gyRGLGOv7HKhLxHKlKG5ywKJeqvkozuX2vw77ypQFHg2saAwrqLEhFGpOFMWsLevDAj9H",
        "field": "device"
    }
}
{
    "message": "data not found",
    "errors": [
        {
            "message": "data not found",
            "field": "device"
        }
    ],
    "code": 404
}