curl --request GET \
--url https://api.example.com/api/dashboard/proximas-citas{
"citas": [
{
"id": 123,
"cliente_id": 123,
"medico_id": 123,
"fecha_solicitada": "<string>",
"hora_solicitada": "<string>",
"fecha_confirmada": "<string>",
"hora_confirmada": "<string>",
"sintomas": "<string>",
"estado": "<string>",
"created_at": "<string>",
"cliente": {
"cliente.id": 123,
"cliente.nombres": "<string>",
"cliente.apellidos": "<string>",
"cliente.telefono": "<string>",
"cliente.email": "<string>"
},
"medico": {
"medico.id": 123,
"medico.especialidad_id": 123,
"medico.especialidad": {
"especialidad.id": 123,
"especialidad.nombre": "<string>"
}
}
}
],
"401 Unauthorized": {},
"403 Forbidden": {},
"500 Internal Server Error": {}
}Retrieve the next 5 pending or confirmed appointments
curl --request GET \
--url https://api.example.com/api/dashboard/proximas-citas{
"citas": [
{
"id": 123,
"cliente_id": 123,
"medico_id": 123,
"fecha_solicitada": "<string>",
"hora_solicitada": "<string>",
"fecha_confirmada": "<string>",
"hora_confirmada": "<string>",
"sintomas": "<string>",
"estado": "<string>",
"created_at": "<string>",
"cliente": {
"cliente.id": 123,
"cliente.nombres": "<string>",
"cliente.apellidos": "<string>",
"cliente.telefono": "<string>",
"cliente.email": "<string>"
},
"medico": {
"medico.id": 123,
"medico.especialidad_id": 123,
"medico.especialidad": {
"especialidad.id": 123,
"especialidad.nombre": "<string>"
}
}
}
],
"401 Unauthorized": {},
"403 Forbidden": {},
"500 Internal Server Error": {}
}This endpoint returns the next 5 upcoming appointments with statusDocumentation 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.
pendiente or confirmada, ordered by date and time. Includes complete client and doctor information.
admin or asistente can access this endpoint.Authorization: Bearer <token>
{
"message": "Token requerido"
}
{
"message": "Acceso denegado"
}
{
"message": "Error próximas citas"
}
curl -X GET https://api.example.com/api/dashboard/proximas-citas \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
[
{
"id": 125,
"cliente_id": 45,
"medico_id": 10,
"fecha_solicitada": "2026-03-06T00:00:00.000Z",
"hora_solicitada": "1970-01-01T09:00:00.000Z",
"fecha_confirmada": "2026-03-06T00:00:00.000Z",
"hora_confirmada": "1970-01-01T09:00:00.000Z",
"sintomas": "Control de presión arterial",
"estado": "confirmada",
"created_at": "2026-03-01T10:00:00.000Z",
"cliente": {
"id": 45,
"nombres": "Juan",
"apellidos": "Pérez",
"telefono": "+502 5555-1234",
"email": "[email protected]"
},
"medico": {
"id": 10,
"especialidad_id": 3,
"especialidad": {
"id": 3,
"nombre": "Cardiología"
}
}
},
{
"id": 126,
"cliente_id": 47,
"medico_id": null,
"fecha_solicitada": "2026-03-07T00:00:00.000Z",
"hora_solicitada": "1970-01-01T14:30:00.000Z",
"fecha_confirmada": null,
"hora_confirmada": null,
"sintomas": "Dolor de espalda",
"estado": "pendiente",
"created_at": "2026-03-02T08:15:00.000Z",
"cliente": {
"id": 47,
"nombres": "María",
"apellidos": "López",
"telefono": "+502 5555-5678",
"email": "[email protected]"
},
"medico": null
}
]
pendiente or confirmadafecha_solicitada and hora_solicitada (earliest first)