Webhooks are preconfigured to allow the Edge Data Hub to proactively push zone entry and exit events to another system.
Webhooks can be set up with a secret, which is used to sign the payload, creating a HMAC signature that is included in a header X-Webhook-Signature
Example Enter Event
{
"eventId": "event-123",
"eventType": "asset.enteredZone",
"enteredAt": "2023-10-27T10:15:00Z",
"position": {
"x": 10.5,
"y": 20.2,
"z": 5.0,
"accuracyRadius": 1.2,
"stationaryConfidence": 95,
"locatedAt": "2023-10-27T10:15:00Z",
"beaconMac": "00:1A:2B:3C:4D:5E",
"networkId": "network-123"
},
"zone": {
"id": "zone-789",
"externalId": "ext-zone-123",
"name": "Loading Bay",
"levelName": "Ground Floor"
},
"asset": {
"id": "asset-123",
"name": "Pallet 1"
}
}
Example Exit Event
{
"eventId": "event-456",
"eventType": "asset.exitedZone",
"enteredAt": "2023-10-27T10:30:00Z",
"exitedAt": "2023-10-27T10:45:00Z",
"position": {
"x": 15.0,
"y": 25.5,
"z": 6.0,
"accuracyRadius": 1.5,
"stationaryConfidence": 80,
"locatedAt": "2023-10-27T10:45:00Z",
"beaconMac": "00:1A:2B:3C:4D:5F",
"networkId": "network-456"
},
"zone": {
"id": "zone-abc",
"externalId": "ext-zone-456",
"name": "Storage Area",
"levelName": "Mezzanine"
},
"asset": {
"id": "asset-456",
"name": "Pallet 2"
}
}