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.

HeaderValue
x-api-keyThe API key the carrier generated for you in their ELD account. It is tied to one carrier (USDOT).
provider-tokenYour integration provider token, issued by ELD. How to get it

Path Parameters

ParameterRequiredDescription
usdotYesThe carrier's USDOT number
vinYesThe 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

FieldTypeDescription
truck_numberstringUnit (truck) number set by the carrier
vinstringVehicle Identification Number
idintegerELD internal unit ID
coordinatesobject { lat, lng }Latest known location, decimal degrees
rotationnumberHeading in degrees, 0–360 (0 = north)
timestampstring (ISO 8601, UTC)When the latest location was recorded
eld_connectionbooleanVehicle 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.
fuelLevelPercentnumberLast reported fuel level, 0–100

Optional Fields

  • coordinates, rotation, timestamp and eld_connection are omitted when the unit has no tracking record from the vehicle's ELD.
  • fuelLevelPercent is omitted when the vehicle has not reported fuel data.

Error Responses

Errors return a JSON body { "message": "<text>" } with one of these status codes.

StatusMessageCause
400The 'x-api-key' header is required.x-api-key header missing
400The 'provider-token' header is required.provider-token header missing
400Bad Request!usdot or vin path parameter missing
401Not found x-api-keyAPI key is invalid or deactivated
403A company with this dot number does not exist!No active carrier with this USDOT
403Don`t have access to companyAPI key belongs to a different carrier
404Provider token not found.Provider token is invalid or deactivated
404Unit not found with this {vin}!No active unit with this VIN, or the unit is excluded from integrations
429Max 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.

Related

© 2026 API