curl --request GET \
--url https://{company}.datatruck.io/api/v1/openapi/trailers/list/ \
--header 'Authorization: <api-key>'{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"id": 123,
"unit_number": "<string>",
"vin": "<string>",
"make": "<string>",
"model": "<string>",
"year": 123,
"status": "<string>",
"plate_number": "<string>",
"state": "<string>",
"driver_operator": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>"
},
"co_driver_operator": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>"
},
"type": {
"id": 123,
"name": "<string>"
},
"dispatch_status": {
"id": 123,
"name": "<string>",
"color": "<string>"
}
}
]
}Retrieves a paginated list of trailers, including their driver operators, trailer types, dispatch statuses, and other attributes such as unit number, VIN, make, model, and year.
curl --request GET \
--url https://{company}.datatruck.io/api/v1/openapi/trailers/list/ \
--header 'Authorization: <api-key>'{
"count": 123,
"next": "<string>",
"previous": "<string>",
"results": [
{
"id": 123,
"unit_number": "<string>",
"vin": "<string>",
"make": "<string>",
"model": "<string>",
"year": 123,
"status": "<string>",
"plate_number": "<string>",
"state": "<string>",
"driver_operator": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>"
},
"co_driver_operator": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>"
},
"type": {
"id": 123,
"name": "<string>"
},
"dispatch_status": {
"id": 123,
"name": "<string>",
"color": "<string>"
}
}
]
}Successful response with a paginated list of trailers.
Total number of trailers.
URL to the next page of results.
URL to the previous page of results.
List of trailer entries.
Show child attributes
Unique identifier for the trailer.
Unit number of the trailer.
Vehicle Identification Number (VIN) of the trailer.
Manufacturer of the trailer.
Model of the trailer.
Manufacturing year of the trailer.
Current status of the trailer.
Plate number of the trailer, if available.
State where the trailer is registered, if available.
Co-driver operator assigned to the trailer, if any.
Dispatch status of the trailer, if applicable.