FleetTrack
FleetTrack External API

Raw telemetry events, every field, paged by cursor.


Raw events for an account in a time window

GET
https://api.fleettrack.com
/external/api/v1/event-data

Every EventData field for each event in the window, oldest first. Events are ordered by timestamp, then device_id, then status_code, which together identify an event, so paging never skips or repeats one.

Paging

Each response carries up to page_size events. While next_cursor is not null, request again with cursor=<next_cursor> (or simply follow next, the full URL). The last page has next_cursor: null. A window with no events returns an empty results.

Late-arriving events

Events are selected by when they happened (timestamp), not when FleetTrack received them (creation_time). A vehicle out of coverage uploads its buffered events when it reconnects, so events for a time you have already fetched can appear later. To stay complete, re-pull the last 72 hours on every sync and store events keyed on account_id, device_id, timestamp and status_code: a re-pulled event then replaces its earlier copy instead of duplicating it.

Compression

Send Accept-Encoding: gzip. A row is about 3 KB of JSON, mostly field names, and compresses roughly tenfold.

Limits

  • Window: at most 31 days per request.
  • Rate: 120 requests per minute per API key, on this route and across all routes combined (429 rate_limited).
  • Concurrency: 4 Event Data requests in flight per account (429 too_many_concurrent_requests). Page sequentially rather than in parallel.
  • A single page that takes too long is abandoned with 503 query_timeout; retry with a narrower window, a device_id, or a smaller page_size.

Raw events for an account in a time window › query Parameters

account_id
​string · maxLength: 32 · required

Must be the account your key is bound to.

from
​string · date-time · required

Start of the window, inclusive. An exact UTC instant, not a date.

to
​string · date-time · required

End of the window, inclusive. The span must not exceed 31 days and to must not precede from. Like from, an exact instant: end a whole day at its last second, for example to=2026-09-01T23:59:59Z.

device_id
​string · maxLength: 32

Optional. Restrict to one vehicle. Omit for every vehicle in the account.

page_size
​integer · min: 1 · max: 1000

Rows per page. Default and maximum 1000.

Default: 1000
cursor
​string

Opaque. Pass the previous page's next_cursor to get the next page, with the same other parameters. Do not build or edit cursors.

Raw events for an account in a time window › Responses

One page of events.

account_id
​string · required
device_id
​string | null · required

The device_id filter, or null for the whole account.

from
​string · date-time · required
to
​string · date-time · required
​EventRecord[] · required
next_cursor
​string | null · required

Pass as cursor for the next page; null on the last page.

next
​string | null · uri · required

The next page's full URL, or null on the last page.


Correct one event

PATCH
https://api.fleettrack.com
/external/api/v1/event-data/{device_id}/{timestamp}/{status_code}

Corrects fields of a single event, identified by its full key: device_id, timestamp and status_code in the path, account_id in the query. Use it to fix bad data, such as an odometer reading that went backwards or a GPS glitch. Events are never created, replaced or deleted through the API; only PATCH is offered.

Write access

Needs an API key issued with the eventdata:write scope, bound to a user whose role may write. Ordinary keys are read-only and get 403 forbidden. Ask FleetTrack for a write key; keep it separate from your read key so either can be revoked alone.

What can change

Send only the fields to change, by their published names, as a JSON object. Every field of EventRecord can be corrected except account_id, device_id, timestamp, status_code, creation_time, creation_millis and attach_data (marked read-only). A body naming any of them -- even with its current value -- is refused with 400 immutable_field, and nothing is changed. Values must fit the field's type and limits (see EventRecord); times are ISO 8601 with an offset, and null clears a field.

Every change is recorded

FleetTrack keeps the event's previous values with each correction, so a correction can be reviewed and reversed. A field already holding the requested value is not changed or recorded; when nothing differs, changed_fields is empty and audit_id is null.

Limits

  • Rate: 30 corrections per minute per API key (429 rate_limited), within the 120 per minute across all routes.

Reports catch up within minutes

Trip, idle and speeding figures already calculated from the event are recalculated automatically for the event's day and the days either side, a few minutes after the correction. Corrections to the same day are batched into one recalculation.

Correct one event › path Parameters

device_id
​string · maxLength: 32 · required

The event's device_id.

timestamp
​string · date-time · required

The event's timestamp, exactly as published, e.g. 2026-09-30T14:03:22Z. Any UTC offset is accepted.

status_code
​integer · min: 0 · required

The event's status_code.

Correct one event › query Parameters

account_id
​string · maxLength: 32 · required

Must be the account your key is bound to.

Correct one event › Request Body

The fields to change, by published name. See `EventRecord` for types; read-only fields are refused.

Correct one event › Responses

The event after the correction.

​EventRecord · required

One EventData row. Every field is always present; a value the device did not report is null (or, for some devices, 0). account_id, device_id, timestamp and status_code together identify the event.

changed_fields
​string[] · required

Fields whose value actually changed, in published order.

audit_id
​integer | null · required

FleetTrack's record of this correction; quote it when asking for a correction to be reversed. null when nothing changed.