cURL
curl --request GET \ --url https://{company}.datatruck.io/api/v1/openapi/trucks/list/ \ --header 'Authorization: <api-key>'
{ "count": 123, "next": "<string>", "previous": "<string>", "results": [ { "id": 123, "unit_number": "<string>", "plate_number": "<string>", "vin": "<string>", "make": "<string>", "model": "<string>", "year": 123, "status": "<string>", "state": "<string>", "assigned_driver": { "id": 123, "full_name": "<string>" } } ] }
Retrieves a paginated list of trucks, including their unit number, plate number, VIN, make, model, year, status, and state.
Successful response with a paginated list of trucks.
Total number of trucks.
URL to the next page of results.
URL to the previous page of results.
List of truck entries.
Show child attributes
Unique identifier for the truck.
Unit number of the truck.
Plate number of the truck.
Vehicle Identification Number (VIN) of the truck.
Manufacturer of the truck.
Model of the truck.
Manufacturing year of the truck.
Current status of the truck.
State where the truck is registered.
Unique identifier of the assigned driver.
Full name of the assigned driver.