Skip to main content
GET
/
api
/
especialidades
List Specialties
curl --request GET \
  --url https://api.example.com/api/especialidades
{
  "specialties": [
    {
      "[].id": 123,
      "[].nombre": "<string>",
      "[].descripcion": "<string>",
      "[].created_at": "<string>",
      "[].updated_at": "<string>"
    }
  ],
  "500 Internal Server Error": {}
}
This endpoint returns a list of all available medical specialties in the system, sorted alphabetically by name.

Authentication

No authentication required - this is a public endpoint.

Query Parameters

No query parameters required.

Response

Returns an array of specialty objects.
specialties
array
Array of specialty objects sorted by name
[].id
number
Specialty ID
[].nombre
string
Specialty name
[].descripcion
string
Specialty description
[].created_at
string
Creation timestamp
[].updated_at
string
Last update timestamp

Error Responses

500 Internal Server Error
object
Returned when a server error occurs
{
  "message": "Error al listar especialidades"
}

Example Request

curl https://api.example.com/api/especialidades

Example Response

[
  {
    "id": 1,
    "nombre": "Cardiología",
    "descripcion": "Especialidad médica que se ocupa del diagnóstico y tratamiento de las enfermedades del corazón",
    "created_at": "2026-01-15T08:00:00.000Z",
    "updated_at": "2026-01-15T08:00:00.000Z"
  },
  {
    "id": 2,
    "nombre": "Dermatología",
    "descripcion": "Especialidad dedicada al estudio de la piel y sus enfermedades",
    "created_at": "2026-01-15T08:00:00.000Z",
    "updated_at": "2026-01-15T08:00:00.000Z"
  },
  {
    "id": 3,
    "nombre": "Pediatría",
    "descripcion": "Especialidad médica que se centra en la salud y las enfermedades de los niños",
    "created_at": "2026-01-15T08:00:00.000Z",
    "updated_at": "2026-01-15T08:00:00.000Z"
  }
]

Build docs developers (and LLMs) love