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

Authorizations

Authorization
string
header
required

Response

200 - application/json

Successful response with a paginated list of trucks.

count
integer
required

Total number of trucks.

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 truck entries.