Skip to content

Alerts ​

GET /fleet/alerts

Alerts raised by the organisation's alert rules: overspeeding, geofence entry and exit, harsh driving, idling, fatigue and others. Newest first.

Query parameters ​

NameTypeDescription
fromISO-8601 timeRange start. Defaults to 24 hours before to.
toISO-8601 timeRange end. Defaults to now. At most 31 days after from.
typestringComma-separated event types (see below).
vehicleIdstringOne vehicle only.
limit, cursorSee Pagination.

Event types ​

OVERSPEED, GEOFENCE_ENTER, GEOFENCE_EXIT, IGNITION_ON, IGNITION_OFF, LOCK, UNLOCK, HARSH_ACCELERATION, HARSH_BRAKING, SEVERE_ACCELERATION, SEVERE_BRAKING, FATIGUE, IDLE, ROUTE_DEVIATION

An event is only produced when the organisation has an active alert rule of that type.

Example ​

bash
curl "https://api.routetracks.com/api/v1/partner/v1/fleet/alerts?type=OVERSPEED,GEOFENCE_ENTER&from=2026-10-22T00:00:00Z&to=2026-10-23T00:00:00Z" \
  -H "Authorization: Bearer $TOKEN"
json
{
  "data": [
    {
      "id": "cm2evt0912",
      "type": "OVERSPEED",
      "triggeredAt": "2026-10-22T09:41:17.000Z",
      "vehicleId": "cm1veh0003",
      "licensePlate": "WP CAB-1234",
      "driver": { "id": "cm1drv0007", "name": "Nimal Perera" },
      "rule": { "id": "cm1rul0002", "name": "Highway > 90 km/h" },
      "latitude": 7.01455,
      "longitude": 79.95932,
      "speedKmh": 97,
      "speedLimitKmh": 90,
      "durationSeconds": null,
      "zoneName": null
    },
    {
      "id": "cm2evt0907",
      "type": "GEOFENCE_ENTER",
      "triggeredAt": "2026-10-22T08:03:55.000Z",
      "vehicleId": "cm1veh0009",
      "licensePlate": "WP LM-9081",
      "driver": null,
      "rule": { "id": "cm1rul0005", "name": "Port arrivals" },
      "latitude": 6.94732,
      "longitude": 79.84391,
      "speedKmh": null,
      "speedLimitKmh": null,
      "durationSeconds": null,
      "zoneName": "Colombo Port – Gate 4"
    }
  ],
  "meta": {
    "limit": 100,
    "hasMore": false,
    "nextCursor": null,
    "from": "2026-10-22T00:00:00.000Z",
    "to": "2026-10-23T00:00:00.000Z"
  }
}

Fields ​

FieldDescription
ruleThe alert rule that fired.
driverDriver assigned to the vehicle at triggeredAt, or null.
latitude, longitudeWhere it happened, when known.
speedKmh, speedLimitKmhMeasured speed and the rule's limit (overspeed events).
durationSecondsHow long the condition lasted (for example idle or fatigue), when known.
zoneNameGeofence or route name for zone events.

Partner API v1