Skip to main content

Models

The reusable object schemas the endpoints return. Every successful response wraps one of these in the response envelope.

Driver object

A driver in the carrier's fleet.

FieldTypeDescription
driver_idUUIDUnique driver identifier
usernamestringDriver's login username
first_namestringFirst name
last_namestringLast name
activebooleanWhether the driver is currently active

Driver HOS Status object

Remaining Hours-of-Service time per bucket (milliseconds) plus current duty status.

FieldTypeDescription
driver_idUUIDUnique driver identifier
usernamestringDriver's login username
breakintegerRemaining break time (ms)
driveintegerRemaining drive time (ms)
shiftintegerRemaining shift time (ms)
cycleintegerRemaining cycle time (ms)
current_statusstringCurrent duty status code
One of:DS_DDS_ONDS_SBDS_OFFDR_IND_PCDR_IND_YM

Vehicle object

A vehicle in the carrier's fleet.

FieldTypeDescription
vehicle_idUUIDUnique vehicle identifier
numberstringVehicle or unit number
vinstringVehicle Identification Number
activebooleanWhether the vehicle is currently active

Vehicle Location object

Most recent location and motion status for a vehicle.

FieldTypeDescription
vehicle_idUUIDUnique vehicle identifier
numberstringVehicle or unit number
odometerstringOdometer reading (miles)
fuel_levelNewnumberFuel level as a percentage from 0 to 100. Returns 0 when the vehicle does not report fuel data.
speedintegerCurrent speed (mph)
latstringLatitude
lonstringLongitude
statusstringCurrent motion status
One of:IN_MOTIONSTATIONARYOFFLINE
timestampstringTime of reading (UTC, ISO-8601)

Response envelope object

Every successful response wraps its payload in this envelope.

FieldTypeDescription
descriptionstring"success" on success, otherwise an error message.
dataobject | array | nullThe response payload — one record or an array of records.
pageintegerCurrent page (1-indexed) on paginated list endpoints.
sizeintegerNumber of items in this page.
total_elementsintegerTotal records available across all pages.
total_pagesintegerTotal number of pages. Stop when page ≥ total_pages.
next_page_tokenstringCursor for the next page (location history only).
status_codeintegerPresent only on error responses.

Error object

Returned with any non-2xx status.

FieldTypeDescription
status_codeintegerHTTP status code (e.g. 401).
descriptionstringHuman-readable error message.
datanullAlways null on error.
esc