Skip to main content

Get driver details

GET 

/truckers/drivers/:id

Retrieves detailed information about a specific driver by their ID.

Requirements:

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

Parameters:

  • id (path): Unique ID of the driver to query

Example response:

{
_id: 507f1f77bcf86cd799439011,
name: Juan Pérez,
email: juan@transporte.com,
phone: +34666555444,
image: https://bucket.s3.amazonaws.com/drivers/507f1f77bcf86cd799439011.jpg,
status: active,
createdAt: 2025-01-15T10:30:00Z,
updatedAt: 2025-03-20T14:15:22Z
}

Use cases:

  • View a driver's complete profile
  • Verify information before an operation
  • Integration with fleet management systems

Request

Responses

Successful response returning the full details of a driver. Includes complete profile information, status, and metadata.