Skip to main content

List all drivers of a carrier

GET 

/company/my_carriers/driver/:carrierId

Returns a complete listing of all drivers associated with a specific carrier. Requires JWT authentication.

Use cases:

  • Consult the driver team of a carrier
  • Filter active/inactive drivers
  • Obtain basic data to assign drivers to operations

Notes:

  • The carrier must exist previously
  • The response includes metadata such as the total count

Request

Responses

Driver list retrieved successfully. Returns a direct array of drivers (NOT wrapped in an object with a drivers property).

ID structure within each driver:

  • _id: ID of the subdocument within the carrier's drivers array
  • associated: ID of the trucker_user in the truckers_users collection (reference to the actual user)
Response Headers