Skip to main content

Create driver

POST 

/truckers/drivers/

Register a new driver in the system associated with a carrier company.

Requirements:

  • Administrator role
  • Valid JWT authentication

Mandatory Parameters:

  • name: Driver's full name
  • email: Valid and unique email address

Optional Parameters:

  • phone: Contact phone number
  • status: Initial status (active/inactive/pending)
  • image: Driver's photo (multipart format)

Request Example:

{
name: María García,
email: maria@transporte.com,
phone: +34666777888,
status: pending
}

Notes:

  • The system will send a welcome email to the new driver
  • To upload an image, use multipart/form-data

Request

Responses

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