API v2
Tracking by VIN Number API (v2)
Returns the latest known location of one active unit, found by VIN, plus an eld_connection vehicle status indicator. The location comes from the latest tracking recorded by the vehicle's ELD device.
Endpoint
GET/api/v2/unit-by-vin/:usdot/:vin
Authentication Headers
Every request needs both headers. The API is read-only and uses GET only.
| Header | Value |
|---|---|
x-api-key | The API key the carrier generated for you in their ELD account. It is tied to one carrier (USDOT). |
provider-token | Your integration provider token, issued by ELD. How to get it |
Path Parameters
| Parameter | Required | Description |
|---|---|---|
usdot | Yes | The carrier's USDOT number |
vin | Yes | The vehicle's VIN |
Example Request
bash
Response 200 OK
Returns a unit object for the one active unit matching the VIN.
json
{
"unit": {
"truck_number": "101",
"vin": "1FUJGLDR5CLBP8834",
"id": 2451,
"coordinates": { "lat": 41.8781, "lng": -87.6298 },
"rotation": 270,
"timestamp": "2026-10-31T18:42:10.000Z",
"eld_connection": false,
"fuelLevelPercent": 64
}
}Response Fields
| Field | Type | Description |
|---|---|---|
truck_number | string | Unit (truck) number set by the carrier |
vin | string | Vehicle Identification Number |
id | integer | ELD internal unit ID |
coordinates | object { lat, lng } | Latest known location, decimal degrees |
rotation | number | Heading in degrees, 0–360 (0 = north) |
timestamp | string (ISO 8601, UTC) | When the latest location was recorded |
eld_connection | boolean | Vehicle status indicator. true: the ELD device was connected to the driver's app when the latest location was recorded. false: it was not connected, and the location came from the mobile device's GPS. |
fuelLevelPercent | number | Last reported fuel level, 0–100 |
Optional Fields
coordinates,rotation,timestampandeld_connectionare omitted when the unit has no tracking record from the vehicle's ELD.fuelLevelPercentis omitted when the vehicle has not reported fuel data.
Error Responses
Errors return a JSON body { "message": "<text>" } with one of these status codes.
| Status | Message | Cause |
|---|---|---|
| 400 | The 'x-api-key' header is required. | x-api-key header missing |
| 400 | The 'provider-token' header is required. | provider-token header missing |
| 400 | Bad Request! | usdot or vin path parameter missing |
| 401 | Not found x-api-key | API key is invalid or deactivated |
| 403 | A company with this dot number does not exist! | No active carrier with this USDOT |
| 403 | Don`t have access to company | API key belongs to a different carrier |
| 404 | Provider token not found. | Provider token is invalid or deactivated |
| 404 | Unit not found with this {vin}! | No active unit with this VIN, or the unit is excluded from integrations |
| 429 | Max API calls exceeded! | Rate limit exceeded (see below) |
Rate Limit
300 requests per minute, counted per caller IP, provider token, API key and USDOT combination. Requests above the limit get 429.
API Key Generation
Keys are created via the company's main dashboard account. Navigate to the sidebar, scroll to "More", then select API Keys. See the full guide: How to Create an API Key.