Browse documentation

Trucks

10 endpoints.

Paths are relative to the base URL for your environment. Unless marked otherwise, every request needs an Authorization: Bearer header.

POST/fleet/trucks

Create Truck

Request body

json
{
  "unit_number": "T-001",
  "vin": "1HGBH41JXMN109186",
  "make": "Freightliner",
  "model": "Cascadia",
  "year": 2024,
  "license_plate": "ABC1234",
  "license_state": "TX"
}

Response fields

Asserted by the API’s own test suite.

truckid
GET/fleet/trucks

Get Trucks

Response fields

Asserted by the API’s own test suite.

trucks
GET/fleet/trucks/{truck_id}

Get Truck by ID

Path parameters

  • {truck_id} — required

Response fields

Asserted by the API’s own test suite.

truck
PUT/fleet/trucks/{truck_id}

Update Truck (PUT)

Path parameters

  • {truck_id} — required

Request body

json
{
  "unit_number": "T-001-UPDATED",
  "make": "Freightliner",
  "model": "Cascadia",
  "year": 2025
}

Response fields

Asserted by the API’s own test suite.

truck
GET/fleet/trucks/{truck_id}/loads

Get Truck Loads

Path parameters

  • {truck_id} — required

Response fields

Asserted by the API’s own test suite.

loads
POST/fleet/trucks/{truck_id}/fmcsa

FMCSA Check

Path parameters

  • {truck_id} — required

Response fields

Asserted by the API’s own test suite.

truck
POST/fleet/trucks/{truck_id}/documents

Upload Truck Document

Path parameters

  • {truck_id} — required

Response fields

Asserted by the API’s own test suite.

documentnameurlpath
GET/fleet/trucks/{truck_id}/documents

Get Truck Documents

Path parameters

  • {truck_id} — required

Response fields

Asserted by the API’s own test suite.

documents
DELETE/fleet/trucks/{truck_id}/documents

Delete Truck Document

Path parameters

  • {truck_id} — required

Request body

json
{
  "path": "fleet/trucks/{{truck_id}}/document.pdf"
}

Response fields

Asserted by the API’s own test suite.

success
DELETE/fleet/trucks/{truck_id}

Delete Truck

Path parameters

  • {truck_id} — required

Response fields

Asserted by the API’s own test suite.

success