API and integrations

Downloading reports through the API

How to run the same reports as the portal from a script and receive JSON, CSV or Excel, with devices, groups and the period as parameters, the time zone and units of the token’s user, and long periods split into pieces.

Ashish Srivastava4 min read

A finance officer at a wooden desk early in the morning sorts printed sheets with abstract bar marks next to a closed laptop

The fleet report API runs the same reports as the portal's Reports page from a script. Call GET /api/reports/<type> with the devices or groups and a period, and the answer is JSON; ask for CSV with the header Accept: text/csv, or an Excel workbook from /api/reports/<type>/xlsx. The token's user needs the right to run reports, and sees only the devices it may read.

Key takeaways

  • One endpoint per report: route, trips, stops, summary, events, idle, geofences, combined, wellness.
  • Choose devices with deviceId or groupId (both repeatable) and the period with from and to.
  • JSON uses raw units; CSV and Excel use the token's user's time zone and units.
  • Split long periods by day or by device, and page the route and events reports.

The report endpoints by type

Report Endpoint What a row is
Route /api/reports/route Every position of the period
Trips /api/reports/trips A trip with distance, speeds, duration, idle time and driver
Stops /api/reports/stops A stop with its place and duration
Summary /api/reports/summary Totals per device: distance, speeds, engine hours, fuel
Events /api/reports/events The events of the period
Idle /api/reports/idle Standing time with the engine on
Geofences /api/reports/geofences Visits to geofences, with time inside
Combined /api/reports/combined Route, events and positions together
Wellness /api/reports/wellness Activity of a person or pet wearing a tracker

What each report contains, and how the portal shows it, is on the reports feature page. The figures depend on what the device reports: fuel or driver names appear only where the tracker sends them.

Devices, groups, from and to

Every report takes:

  • deviceId or groupId, each repeatable: deviceId=1&deviceId=2, or groupId=4 for a whole depot (subgroups included);
  • from and to, ISO-8601 instants such as 2026-11-01T00:00:00Z; to may not be before from.

Some reports take more: type on events (repeatable, for example type=alarm), daily=true on summary for one row per device and day, geofenceId on events and route, and driverUniqueId on trips, stops, route, events and combined for one driver's part.

curl -H "Authorization: Bearer $TOKEN" \
  "https://YOUR_HOST/api/reports/trips?groupId=4&from=2026-11-01T00:00:00Z&to=2026-11-08T00:00:00Z"

Choose JSON, CSV or Excel

  • JSON (the default): the fields of each row, in the API's units: distance in metres, speed in knots, durations in milliseconds, fuel in litres, times as instants.
  • CSV: the same request with -H 'Accept: text/csv'. Columns are labelled for people, with the unit in the label, and the device first, in one table.
  • Excel: GET /api/reports/trips/xlsx with the same parameters gives a workbook with one sheet per device; add sheets=single for one sheet.

CSV and Excel also take columns (a list of column keys, in your order) and raw=true for the JSON field names as columns, which is easier for another program to read. /api/reports/<type>/mail sends the workbook to your own email address instead.

The Summary report in the portal with distance, top speed and engine hours per vehicle for a week, and the export options
The API runs the same reports as the Reports page, with the same devices, groups and period.

Time zone and units follow the token's user

In CSV and Excel, times are local times and distances, speeds and volumes are in units, both taken from the token's user: what that user chose under Settings → Your account → Map and display, unless the server forces its own. The daily summary splits days at midnight in the user's time zone too. JSON is not affected and always uses the raw units and instants above.

So if your accounting team wants kilometres and their own time zone in a weekly export, set them on the integration's user rather than converting afterwards.

Large periods: split by day or by device

  • An installation can limit how long a report period may be; a longer one answers 400 with "Time period exceeds the limit".
  • A device on a package with limited history is reported from the start of its history; when a report covers one device and was cut, the answer carries the header X-History-From.
  • The route and events reports can be paged in JSON with limit (1 to 10,000) and offset; the header X-Total-Count gives the whole number of rows. CSV and Excel always hold every row.
  • A month of route positions for a large fleet is a big answer. Loop over days or over devices, and run heavy exports at night.

For regular exports, a scheduled report in the portal may be simpler than a script; the integrations page lists the other ways to get files into your tools, and the API reference has every parameter.

Frequently asked questions

Why does a report answer 403?

The token's user may not run reports, or one of the devices you named is outside its reach. A user whose reports are switched off gets 403 for every report.

Why is a device missing from the summary?

Summary, trips and stops leave out devices with no data in the period.

API and integrations

Connecting an AI assistant through the MCP server

Where the administrator has switched it on, an AI assistant can read your fleet data through the MCP endpoint with your own token and rights. How to check it is on, create a token, connect the assistant, and what it can and cannot read.

Ashish Srivastava3 min read

Put your first device on the map today

Book a demo if you would rather see it with your own use case first. Choose a package in the portal; you see the first invoice before you confirm.

Chat with us