curl --request GET \
--url https://api.example.com/api/historial{
"historial": [
{
"id": 123,
"cita_id": 123,
"notas": "<string>",
"created_at": "<string>",
"cita": {
"cita.id": 123,
"cita.fecha_solicitada": "<string>",
"cita.hora_solicitada": "<string>",
"cita.estado": "<string>",
"cita.sintomas": "<string>",
"cita.cliente": {
"cliente.id": 123,
"cliente.nombres": "<string>",
"cliente.apellidos": "<string>",
"cliente.telefono": "<string>",
"cliente.email": "<string>"
},
"cita.medico": {
"medico.id": 123,
"medico.persona": {
"persona.nombres": "<string>",
"persona.apellidos": "<string>"
}
}
}
}
],
"401 Unauthorized": {},
"403 Forbidden": {},
"500 Internal Server Error": {}
}Retrieve all medical history records with appointment and patient details
curl --request GET \
--url https://api.example.com/api/historial{
"historial": [
{
"id": 123,
"cita_id": 123,
"notas": "<string>",
"created_at": "<string>",
"cita": {
"cita.id": 123,
"cita.fecha_solicitada": "<string>",
"cita.hora_solicitada": "<string>",
"cita.estado": "<string>",
"cita.sintomas": "<string>",
"cita.cliente": {
"cliente.id": 123,
"cliente.nombres": "<string>",
"cliente.apellidos": "<string>",
"cliente.telefono": "<string>",
"cliente.email": "<string>"
},
"cita.medico": {
"medico.id": 123,
"medico.persona": {
"persona.nombres": "<string>",
"persona.apellidos": "<string>"
}
}
}
}
],
"401 Unauthorized": {},
"403 Forbidden": {},
"500 Internal Server Error": {}
}This endpoint retrieves all medical history records in the system, including detailed information about the associated appointment, client, and assigned doctor. Records are ordered by creation date (newest first).Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Bran258/api_centro_medico/llms.txt
Use this file to discover all available pages before exploring further.
admin or asistente can access this endpoint.Authorization: Bearer <token>
{
"message": "Token requerido"
}
{
"message": "Acceso denegado"
}
{
"message": "Error al listar historial"
}
curl -X GET https://api.example.com/api/historial \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
[
{
"id": 56,
"cita_id": 123,
"notas": "Paciente presenta mejoría después del tratamiento. Se recomienda seguimiento en 2 semanas.",
"created_at": "2026-03-05T16:30:00.000Z",
"cita": {
"id": 123,
"fecha_solicitada": "2026-03-15T00:00:00.000Z",
"hora_solicitada": "1970-01-01T10:30:00.000Z",
"estado": "atendida",
"sintomas": "Dolor de cabeza persistente",
"cliente": {
"id": 45,
"nombres": "Juan",
"apellidos": "Pérez",
"telefono": "+502 5555-1234",
"email": "[email protected]"
},
"medico": {
"id": 10,
"persona": {
"nombres": "Dr. Carlos",
"apellidos": "Ramírez"
}
}
}
}
]
created_at in descending order (newest first)