{
"_id": "66fb0c1d2e3f4a5b6c7d8ea1",
"alertCode": "geofence.leave",
"alertName": "Left geofence",
"title": "Left Geofence: Warehouse A",
"message": "User One left Warehouse A after 42 minutes.",
"assignee": "[email protected]",
"eventTime": "2026-10-15T02:52:00+00:00",
"data": {
"lat": -6.2001,
"lon": 106.8166,
"geofenceId": "66e0a1b2c3d4e5f6a7b8c9d0",
"geofenceName": "Warehouse A",
"geofenceGroup": "66e0a0b1c2d3e4f5a6b7c8d9",
"locationHistoryId": "66fb0c1d2e3f4a5b6c7d8e01",
"hubId": null,
"trackingDate": "2026-10-15",
"driverName": "User One",
"enteredAt": "2026-10-15T02:10:00+00:00",
"dwelledMinutes": 42
},
"isResolved": false,
"resolvedTime": null,
"resolvedBy": null,
"resolvedByName": null,
"resolvedNotes": null
}Alert object
An event raised while monitoring field users, returned by GET /alerts. Fields shared by every alert are at the top level, including the required title and message. Fields specific to one kind of alert are inside data, which is returned exactly as stored: its keys depend on alertCode (pick a tab under data to see each kind), it is always an object ({} when the alert stores nothing), and an alert recorded by an older version may carry keys that are no longer written (for example title, message, titleKey or messageParams). The position (lat, lon) is inside data because some kinds of alert have none; alerts recorded before this change are returned without a position.
Short title of the alert.
Message describing the alert.
Unique identifier of the alert.
Kind of alert. It decides which fields data contains.
geofence.enter, geofence.leave, idle.detected, idle.repeated, user.panic, task.lateness.predicted, route.deviation.detected Readable name of the alert kind, for example Left geofence.
Email of the user the alert is about.
When the event happened (ISO 8601), not when the alert was stored.
Returned when alertCode is geofence.enter.
- Geofence enter
- Geofence leave
- Idle
- Panic (SOS)
- Predicted lateness
- Route deviation
Show child attributes
Show child attributes
Whether the alert has been resolved.
When the alert was resolved (ISO 8601). null while unresolved.
Email of the user who resolved the alert.
Name of the user who resolved the alert.
Notes written when the alert was resolved.