FleetTrack
FleetTrack External API

The latest still image from a vehicle's camera. Read the Freshness notes on age_seconds before displaying anything publicly.


The cameras this key can see

GET
https://api.fleettrack.com
/external/api/v1/cameras/

Call this infrequently — daily, or on startup — to learn the fleet. It is not part of the polling loop.

camera_positions lists the positions a serial can produce; a position may still have no image at any given moment.

The cameras this key can see › query Parameters

page
​integer · min: 1
Default: 1
page_size
​integer · min: 1 · max: 500
Default: 100

The cameras this key can see › Responses

A page of cameras.

count
​integer · required

Total cameras visible to this key.

​CameraListItem[] · required
next
​string | null

URL of the next page, or null.

previous
​string | null

URL of the previous page, or null.


Metadata for the latest image at each available position

GET
https://api.fleettrack.com
/external/api/v1/cameras/{camera_serial}/latest-image

The endpoint to poll. Returns the latest image FleetTrack already holds; it does not ask the camera for a new one.

A camera that is in scope but has no image returns 200 with images: []. That is normal operation, not an error — see the freshness notes on age_seconds.

Supports ETag / If-None-Match. Send back the previous ETag and a 304 is returned with no body when nothing has changed. Please use it: it is the single biggest thing that keeps this integration cheap on both sides.

Metadata for the latest image at each available position › path Parameters

camera_serial
​string · required

The camera's serial number as recorded in FleetTrack.

Metadata for the latest image at each available position › Headers

If-None-Match
​string

The ETag from your previous response. Returns 304 when unchanged.

Metadata for the latest image at each available position › Responses

The latest image at each published position.

camera_serial
​string · required
asset
​Asset · required

The vehicle the camera is fitted to, or null when it is not currently linked to one. Constant for a given camera unless it is moved between vehicles, so it can be cached alongside discovery rather than re-read on every poll.

retrieved_at
​string · date-time · required

When FleetTrack served this response. Never show this as the capture time.

​Image[] · required

One entry per position that currently has an image. May be empty.


The image bytes

GET
https://api.fleettrack.com
/external/api/v1/cameras/{camera_serial}/latest-image/{camera_position}/content

The bytes themselves, so an image can be dropped straight into an <img src> or fetched by a CDN without parsing anything.

Read Content-Type rather than assuming one. The format is whatever the device produced and is not re-encoded; every camera in the current fleet produces WebP.

The metadata that matters most is repeated in X- headers, so a consumer using only this route still knows how old the picture is.

The image bytes › path Parameters

camera_serial
​string · required

The camera's serial number as recorded in FleetTrack.

camera_position
​string · required

Which lens. This API publishes one position, C_F (front, road-facing). Treat it as an open enum: further positions may be added, which is an additive change requiring no work on your side.

Example: C_F

The image bytes › Headers

If-None-Match
​string

The ETag from your previous response. Returns 304 when unchanged.

The image bytes › Responses

The image.

string · binary