Returns fuel monitoring data for a single unit: fuel, DEF and oil levels, plus engine hours. The unit is found by company USDOT and vehicle VIN.

Endpoint

GET/api/externalservice/fuel-monitoring/:usdot/:vin

Authentication Headers

HeaderValue
x-api-keyYour API key
provider-tokenYour provider token. How to get it

Path Parameters

ParameterRequiredDescription
usdotYesCompany USDOT number. Must belong to the company that owns the API key.
vinYesVehicle Identification Number (17 characters)

Example Request

bash

Response  200 OK

json
{
  "unit": {
    "truck_number": "101",
    "fuelLevelPercent": 64,
    "defLevelPercent": 80,
    "oilLevelPercent": 92,
    "engine_hours": 12345.6
  }
}

Response Fields

FieldTypeDescription
truck_numberstringAssigned truck number
fuelLevelPercentnumber | nullFuel level, in percent
defLevelPercentnumber | nullDiesel exhaust fluid (DEF) level, in percent
oilLevelPercentnumber | nullOil level, in percent
engine_hoursnumber | nullTotal engine hours from the latest tracking

Error Responses

WhenResponse
x-api-key or provider-token header is missing400
provider-token is invalidProvider token not found.
USDOT belongs to a different company than the API keyDon`t have access to company
No unit with this VIN, or integration sending is disabled for the unitUnit not found with this <vin>!

Notes

  • Fuel, DEF and oil levels come from the unit's latest truck info, the same source as the dashboard Fuel Monitoring page.
  • Engine hours come from the latest tracking, taken from the ELD first, otherwise from the driver or co-driver.
  • If a value is not available (for example, the unit has no truck info or tracking yet), the field is returned as null.

API Key Generation

Keys are created via the company's main dashboard account. Navigate to the sidebar → "More" section → API Keys page. See the full guide: How to Create an API Key.

Related

© 2026 API