Skip to main content

List drivers

GET 

/truckers/drivers/

Retrieves a paginated list of all drivers registered in the system.

Requirements:

  • Valid JWT authentication
  • The token must belong to a user with carrier permissions

Use Cases:

  • View the complete list of drivers
  • Filter drivers by status (active/inactive/pending)
  • Integration with fleet management systems

Response Example:

[
{
_id: 507f1f77bcf86cd799439011,
name: Juan Pérez,
email: juan@transporte.com,
phone: +34666555444,
status: active,
createdAt: 2025-01-15T10:30:00Z
}
]

Responses

Successful response that returns a paginated list of drivers. Each element contains the driver's basic information.