List alerts
List recent alerts for a company.
Overview
Returns up tonum alert records across alert record types, after from (UTC), for alerts belonging to companies in the caller’s tree when compId matches an allowed company.
Endpoint
POST /api/GetAlerts
Query parameters
Response
200 OK —AlertDto[]
| Field | Type | Description |
|---|---|---|
| Id | integer | Alert definition id |
| UtcTime | datetime | null | When triggered |
| UserTime | datetime | null | Localized |
| UserTimeFormatted | string | Formatted with user pattern |
| AlertType | integer | Alert type discriminator |
| Description | string | From latest snapshot |
| VehicleId | integer | Internal vehicle id |
| VehicleName | string | Resolved name |
| Address | string | Reverse geocoded |
| Lat | number | Latitude |
| Lng | number | Longitude |
| IsRead | boolean | Read state |
Error responses
| Status | Meaning |
|---|---|
| 401 | Missing company or user id claim |
| 404 | { "error": "Company {compId} not found" } |
Authorizations
JWT Bearer token obtained from POST /api/authentication/token/user or POST /api/authentication/token/api-key.
Lifetime: ~24 hours (86,399 seconds). Cache the token and reuse it. Re-authenticate 5 minutes before expiry.
Scoping:
- User tokens are scoped to a single company.
- API key tokens may restrict access to a vehicle allowlist and/or action set (see token claims).
No refresh endpoint — re-authenticate with your credentials when the token expires.
Headers
Standard and must keep as it is.
Bearer your_token
Query Parameters
Company ID.
Starting date.
Maximum number of alerts to return (legacy max-count parameter). Results are ordered by date descending. There is no total count or page cursor — pagination will be added in a future release. Recommended maximum: 100.
x <= 100Response
Successful response with array of alert records
Alert ID
101
Time in UTC
"2024-01-15T10:30:00Z"
Time in user timezone
"2024-01-15T12:30:00+02:00"
Timestamp in the user's configured date-time format (e.g. "15/01/2024 12:30:00"). Note: The field name is intentionally misspelled (UserTimeFormated, single 't') to preserve backward compatibility.
"15/01/2024 12:30:00"
Alert type
"Overspeed"
Description of the alert
"Vehicle exceeded speed limit by 25 km/h"
Vehicle ID
12345
Name of the vehicle
"Fleet Vehicle 002"
Address where the alert occurred
"456 Broadway, New York, NY 10012"
Latitude
40.7218
Longitude
-73.999
Whether the alert has been read
false