Help
Configure Sigfox callbacks
Configure Sigfox callbacks for existing connectivity: BIDIR or UPLINK, geolocation, downlink acknowledgement and micro base station status.
Use these templates when you manage your own Sigfox connectivity. Register the device in IOFrog, then configure the relevant callbacks on its device type in the Sigfox Backend.
For each callback, choose channel URL and method POST:
- URL pattern:
https://app.iofrog.com/api/v2/mp/sigfox - Content type:
application/json
Paste the corresponding body template below into the Sigfox Backend. Keep the quotes as shown: Sigfox substitutes the {...} placeholders before sending the request.
1. DATA → BIDIR (or UPLINK)
Use DATA → BIDIR for device data with downlink support. Set the device type's downlink mode to Callback, then activate this callback in the Downlink column.
{
"deviceId": "{device}",
"timestamp": {time},
"type": "data_bidir",
"seqNumber": {seqNumber},
"ack": {ack},
"keys": [
{ "key": "payload", "value": "{data}" }
]
}
For uplink-only devices, choose DATA → UPLINK, change type to data_uplink, and remove the ack field. Use one of these two variants for device data.
2. SERVICE → DATA ADVANCED
Use this callback to send link quality (lqi) and Sigfox geolocation. Include computedLocation only if geolocation is enabled in your Sigfox contract; otherwise omit that entry. If your contract provides duplicates, you can append { "key": "duplicates", "value": {duplicates} } to keys.
{
"deviceId": "{device}",
"timestamp": {time},
"type": "service_data_advanced",
"seqNumber": {seqNumber},
"keys": [
{ "key": "lqi", "value": "{lqi}" },
{ "key": "computedLocation", "value": {computedLocation} }
]
}
3. SERVICE → ACKNOWLEDGE
Use this callback if you want to send downlink acknowledgement status to IOFrog.
{
"deviceId": "{device}",
"timestamp": {time},
"type": "service_ack",
"keys": [
{ "key": "acknowledgement", "value": "{downlinkAck}" }
]
}
4. Communication UP and DOWN
For a Sigfox micro base station, create one callback for Communication UP with the following body and a second for Communication DOWN with status set to "down". Use {sourceId} for both events.
{
"deviceId": "{sourceId}",
"timestamp": {time},
"type": "communication",
"keys": [
{ "key": "status", "value": "up" }
]
}
Verify delivery
After a device sends a message, check its callback status in Messages in the Sigfox Backend and confirm that the reading appears in IOFrog. For downlink, also check that the BIDIR callback is active in the Downlink column.
