Skip to main content

Get Drivers

curl https://api.example.com/api/catalogos/conductores \
  -H "Authorization: Bearer <your-token>"
Retrieves a list of all drivers ordered alphabetically by name.

HTTP Request

GET /api/catalogos/conductores

Authentication

This endpoint requires authentication via Bearer token.

Headers

Authorization
string
required
Bearer token for authentication

Response

Returns an array of driver objects.
id
number
Unique identifier for the driver
conductor
string
Name of the driver

Example Response

[
  {
    "id": 1,
    "conductor": "Juan Pérez"
  },
  {
    "id": 2,
    "conductor": "María García"
  },
  {
    "id": 3,
    "conductor": "Carlos Rodríguez"
  }
]

Error Response

{
  "error": "Error message"
}

Implementation Details

  • Data is fetched from the areas_conductores table
  • Results are ordered alphabetically by conductor
  • All drivers are returned (no status filter applied)

Build docs developers (and LLMs) love