Skip to content

Tracking API

API documentation

Read vehicles, latest positions, position history, and FleetPro trip and stop summaries into your own system. The API is included when tracking is turned on for your organisation.

Base URL https://www.fleetprouk.co.uk/api/v1/tracking. Machine-readable spec: OpenAPI JSON.

Authentication

An organisation admin or transport manager creates a key in Tracking, under API. The full secret is shown once and starts with fp_trk_. Send it on every request:

Authorization: Bearer fp_trk_your_key

Call the API from your server. Do not put the key in a browser page, a mobile app, or a public repository. A tenant_id parameter is ignored. The key already belongs to one organisation. Each organisation can have five active keys. Revoking a key stops it immediately.

Limits and units

  • Vehicles and latest positions: 60 requests per minute per key.
  • History, trips, and stops: 10 requests per minute per key.
  • A 429 response includes a Retry-After header.
  • Latest positions can be up to 60 seconds old.
  • Position history is one vehicle and at most 24 hours, capped at 5,000 points.
  • Trips and stops are at most 31 days, capped at 2,000 rows.
  • Timestamps are UTC ISO-8601. Speed is miles per hour. Odometer and trip distance are kilometres.

Errors

Failed requests return { ok: false, error, code }.

StatusCodeMeaning
401unauthorizedMissing, wrong, or revoked API key.
403tracking_disabledTracking is not enabled for this organisation.
404not_foundvehicleId is not an active vehicle in this organisation.
422invalid_rangefrom or to is missing, not UTC ISO-8601, or longer than the allowed window.
422trips_unsupportedTrip or stop summaries were requested for a non-FleetPro vehicle.
429rate_limitedToo many requests for this key. Retry-After is set.
503tracking_unavailableTracking data could not be read. Retry later.

List active vehicles

GET /api/v1/tracking/vehicles

60 requests per minute per key

Returns trackers with an active subscription. Pending, suspended, and returned devices are omitted.

Camera-only devices are omitted.

IMEI, SIM, and internal device identifiers are not included.

lastSeenAt for a FleetPro tracker comes from the device record. When a fresh position cache exists, a newer fix time replaces it.

Request

curl -s https://www.fleetprouk.co.uk/api/v1/tracking/vehicles \
  -H "Authorization: Bearer fp_trk_your_key"

Response

{
  "ok": true,
  "vehicles": [
    {
      "id": "4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c",
      "label": "AB12 CDE",
      "registration": "AB12 CDE",
      "provider": "FleetPro",
      "lastSeenAt": "2026-12-01T18:04:11.000Z",
      "driverName": "Alex Driver"
    }
  ]
}

Latest position for each active vehicle

GET /api/v1/tracking/positions

60 requests per minute per key

A latest fix can be up to 60 seconds old. The API reuses the same fleet cache as the tracking console.

Speed is miles per hour. Odometer is kilometres.

recordedAt is UTC.

ignition and driverName are present when the console already has them, otherwise null.

Request

curl -s https://www.fleetprouk.co.uk/api/v1/tracking/positions \
  -H "Authorization: Bearer fp_trk_your_key"

Response

{
  "ok": true,
  "note": "Latest positions can be up to 60 seconds old.",
  "positions": [
    {
      "vehicleId": "4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c",
      "registration": "AB12 CDE",
      "latitude": 51.5074,
      "longitude": -0.1278,
      "speedMph": 34.2,
      "heading": 182,
      "recordedAt": "2026-12-01T18:04:11.000Z",
      "ignition": true,
      "odometerKm": 248331.4,
      "driverName": "Alex Driver"
    }
  ]
}

Position history for one vehicle

GET /api/v1/tracking/positions/history

10 requests per minute per key

from and to are required UTC ISO-8601 timestamps. The range cannot exceed 24 hours.

Works for FleetPro trackers and for a connected TruTrak, RAM Tracking, or TrustTrack provider.

At most 5,000 points are returned. truncated is true when older points in the window were omitted.

  • vehicleId (required) — Vehicle id from GET /vehicles.
  • from (required) — Range start, UTC ISO-8601.
  • to (required) — Range end, UTC ISO-8601.

Request

curl -s "https://www.fleetprouk.co.uk/api/v1/tracking/positions/history?vehicleId=4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c&from=2026-12-01T08:00:00Z&to=2026-12-01T18:00:00Z" \
  -H "Authorization: Bearer fp_trk_your_key"

Response

{
  "ok": true,
  "vehicleId": "4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c",
  "from": "2026-12-01T08:00:00.000Z",
  "to": "2026-12-01T18:00:00.000Z",
  "truncated": false,
  "positions": [
    {
      "vehicleId": "4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c",
      "registration": "AB12 CDE",
      "latitude": 51.5074,
      "longitude": -0.1278,
      "speedMph": 34.2,
      "heading": 182,
      "recordedAt": "2026-12-01T18:04:11.000Z",
      "ignition": true,
      "odometerKm": 248331.4,
      "driverName": "Alex Driver"
    }
  ]
}

Trip summaries

GET /api/v1/tracking/trips

10 requests per minute per key

FleetPro trackers only. A vehicleId for another provider returns 422 trips_unsupported.

Omit vehicleId to include every active FleetPro tracker.

from and to are required. The range cannot exceed 31 days.

Distance is kilometres. Speeds are miles per hour.

  • from (required) — Range start, UTC ISO-8601.
  • to (required) — Range end, UTC ISO-8601.
  • vehicleId (optional) — Optional FleetPro vehicle id. Omit for the whole FleetPro fleet.

Request

curl -s "https://www.fleetprouk.co.uk/api/v1/tracking/trips?from=2026-11-01T00:00:00Z&to=2026-12-01T00:00:00Z" \
  -H "Authorization: Bearer fp_trk_your_key"

Response

{
  "ok": true,
  "from": "2026-11-01T00:00:00.000Z",
  "to": "2026-12-01T00:00:00.000Z",
  "truncated": false,
  "partial": false,
  "trips": [
    {
      "vehicleId": "4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c",
      "registration": "AB12 CDE",
      "startedAt": "2026-12-01T06:12:00.000Z",
      "endedAt": "2026-12-01T07:04:00.000Z",
      "durationSeconds": 3120,
      "distanceKm": 48.2,
      "averageSpeedMph": 34.6,
      "maxSpeedMph": 54,
      "startLatitude": 51.5,
      "startLongitude": -0.12,
      "endLatitude": 51.62,
      "endLongitude": -0.08
    }
  ]
}

Stop summaries

GET /api/v1/tracking/stops

10 requests per minute per key

FleetPro trackers only. The same vehicle and date rules as trips apply.

partial is true when one tracker in a fleet-wide request could not be read and the rest were returned.

  • from (required) — Range start, UTC ISO-8601.
  • to (required) — Range end, UTC ISO-8601.
  • vehicleId (optional) — Optional FleetPro vehicle id. Omit for the whole FleetPro fleet.

Request

curl -s "https://www.fleetprouk.co.uk/api/v1/tracking/stops?vehicleId=4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c&from=2026-12-01T00:00:00Z&to=2026-12-01T23:59:59Z" \
  -H "Authorization: Bearer fp_trk_your_key"

Response

{
  "ok": true,
  "from": "2026-12-01T00:00:00.000Z",
  "to": "2026-12-01T23:59:59.000Z",
  "truncated": false,
  "partial": false,
  "stops": [
    {
      "vehicleId": "4f0b1c2a-6d7e-4a11-9b2c-1d2e3f4a5b6c",
      "registration": "AB12 CDE",
      "startedAt": "2026-12-01T07:04:00.000Z",
      "endedAt": "2026-12-01T07:22:00.000Z",
      "durationSeconds": 1080,
      "latitude": 51.62,
      "longitude": -0.08
    }
  ]
}

Fields

  • id / vehicleId — the vehicle id to use on later requests.
  • registration — fleet registration when the tracker is linked to a vehicle. Otherwise the tracker label.
  • provider — FleetPro, TruTrak, TrustTrack, or RAM Tracking.
  • driverName — display name already shown in Tracking. Licence and tachograph card details are not included.
  • ignition — true, false, or null when the tracker did not report it.

Not included

  • Remote commands, including immobiliser and engine stop.
  • Live cameras, clips, and stream addresses.
  • Tachograph file download.
  • Geofence editing and outbound webhooks.
  • Device IMEI, SIM identity, and internal tracker identifiers.
  • Calling the API from a browser with the key in page script.

Tracking API overview · Sign in to create a key