Get list of truckers
GET/company/truckers/
Returns a paginated list of all truckers associated with the authenticated user's company.
Search features:
- Text filtering (name, lastname, email, taxid)
- Autocomplete for selectors
- Configurable pagination
Response modes:
- Basic mode: Only _id, name, lastname (for truckers)
- Full mode: All relevant fields (for companies)
- With vehicles mode: Includes default vehicle populate
Search parameters:
page: Page number (default: 1)limit: Items per page (default: 10)search: Free text searchautocomplete: Filtering for autocompleteextra=vehicles: Includes vehicle information
Returned fields (company mode):
- _id, name, lastname, email, phone, taxid
- address, allowSearch, accountType
- default_vehicle (if extra=vehicles)
- emailVerified
Responses:
- 200 OK: Paginated list of truckers
- 401 Unauthorized: Invalid token or company not found
- 404 Not Found: User not found
Usage example:
GET /company/truckers/?page=1&limit=20&search=john&extra=vehicles
Request
Responses
- 200
- 401
- 404
Trucker list successfully obtained
Unauthorized - Invalid token or company not found
User not found