How to get messages from specific device
Request
GET https://www.iofrog.com/api/v1/devices/{deviceID}/callbacks Authorization: Bearer {ACCESS_TOKEN} Content-Type: application/json Query params: limitPages = integer, will limit number of records skipPages = integer, will skip number of records timestamp = unix timestamp (seconds) to get messages from this timestamp type = ['data', 'geo', 'ack']. Choose 'data' to get data messages based on data_bidir/data_uplink callback type, or 'geo' to get data_advance callbacks, or 'ack' to get Sigfox acknowledge callbacks URL params /api/v1/devices/{deviceId}/callbacks/:year/:month/:day year = required year month = required month day = required day
Response
{ "data": [ { "_id": "5e6e6a27adb22f1b1b2508c0", "isAlarm": false, "isDismissed": false, "timestamp": 1584294396, "type": "data_uplink", "seqNumber": 2, "messages": [ { "isCode": true, "_id": "5e6e6a27adb22f1b1b2508c9", "key": "action", "value": "measurement" }, { "isCode": true, "_id": "5e6e6a27adb22f1b1b2508c8", "key": "fullPowerMode", "value": "true" }, { "isCode": true, "_id": "5e6e6a27adb22f1b1b2508c7", "key": "activePowerControl", "value": "off" }, { "isCode": false, "_id": "5e6e6a27adb22f1b1b2508c6", "key": "fwVersion", "value": "1100" }, { "isCode": false, "_id": "5e6e6a27adb22f1b1b2508c5", "key": "temperatureC", "value": "21.0", "unit": "°C" }, { "isCode": false, "_id": "5e6e6a27adb22f1b1b2508c4", "key": "tvoc_min", "value": "140", "unit": "ppb" }, { "isCode": false, "_id": "5e6e6a27adb22f1b1b2508c3", "key": "tvoc_max", "value": "335", "unit": "ppb" }, { "isCode": false, "_id": "5e6e6a27adb22f1b1b2508c2", "key": "tvoc_avg", "value": "229", "unit": "ppb" }, { "isCode": false, "_id": "5e6e6a27adb22f1b1b2508c1", "key": "humidity", "value": "52", "unit": "%" } ], "deviceId": "3344", "created": "2020-03-15T17:47:19.546Z", "__v": 0 } ], "count": 1 }