Webhooks
Send alerts to your own system.
Add the webhook channel to an alert rule and each matching event is posted to the webhook address as JSON, with the event, the device, the user and the message.
Choose a package in the portal; you see the first invoice before you confirm.
How it works
From an alert rule to your endpoint
The address is set once
The webhook address belongs to the installation and is set by its administrator. Use an https address: full payloads go only there.
Add the channel to a rule
Through the API, name
webhookin the rule’snotificators, next to the channels it already has.Each matching event is posted
One POST with a JSON body per event and recipient. Answer with a 2xx status within the timeout.
curl -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"type": "geofenceExit", "notificators": "web,webhook", "always": true}' \
https://YOUR_HOST/api/notificationsOne address
The webhook address is set by the administrator of your installation, so you cannot enter your own endpoint in the app. Add the channel to a rule through the API.
The event payload
Short by default, without a position
By default the payload is minimal: the event as id, type, time and device id, and the device, without a position.
{
"event": { "id": …, "type": "geofenceExit", "eventTime": "…", "deviceId": … },
"device": { "id": …, "name": "…", "uniqueId": "…" },
"userId": …,
"message": "…: geofence exit. Open the app for details."
}The fields of the minimal payload. A full payload adds the position.
- event
- What happened and when:
id,type,eventTimeanddeviceId. The minimal payload leaves out the event’s attributes. - device
- Which device:
id,nameanduniqueId. - userId
- The user the alert is for.
- message
- The short text the other channels send, without a place.
- position
- Only in a full payload: where the device was. Sent only to an https address, and only when an administrator sets the webhook detail to full.
- test
trueon a delivery made by testing a rule; absent otherwise.
Delivery
One attempt, and a log of what happened
1attempt
An event is posted once. A failed delivery is not sent again, so read the delivery log if your endpoint was down.
10 stimeout
The default time the platform waits for your answer; your administrator can change it.
2xxanswer
An error status is recorded as rejected, with the status your endpoint returned.
- Same event types as the other channels (geofence, overspeed, SOS, low battery, offline, maintenance)
- Delivery results are listed in the notification delivery log: sent, or failed with the reason (rejected, unreachable, timeout)
- Quiet hours hold back email, SMS, Telegram and push, never the webhook
- Testing a rule posts to the webhook too, marked with "test": true
Which events exist, who else is told and on which schedule is decided in the alert rule, not in the webhook.
How alert rules workFAQ
Questions about webhooks
Can I forward alerts to my own system?
Can I enter my own endpoint in the app?
Does the payload carry the position?
Do routes and runs use this webhook?
Which events can a webhook carry?
Post your first event to your own system
Create an account, or talk to us about your integration. Choose a package in the portal; you see the first invoice before you confirm.