Skip to main content
GET
/
trailers
/
list
List Trailers
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>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Response

200 - application/json

Successful response with a paginated list of trailers.

count
integer
required

Total number of trailers.

next
string | null
required

URL to the next page of results.

previous
string | null
required

URL to the previous page of results.

results
object[]
required

List of trailer entries.