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

Query Parameters

page
integer

Page number for paginated results.

Example:

1

page_size
integer

Number of results per page (max 25, default 10).

Required range: x <= 25
Example:

10

Search term matched against unit_number, plate_number, vin, make, and model (case-insensitive).

Example:

"ABC123"

status
string

Filter trailers by exact status value.

Example:

"Active"

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.