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