curl --request GET \
--url https://api.example.com/api/users/{userId}/reservations{
"id": 123,
"date": "<string>",
"timeBlockId": 123,
"patientId": 123,
"doctorId": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"patient": {},
"doctor": {},
"timeBlock": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}Retrieve reservations for a specific user
curl --request GET \
--url https://api.example.com/api/users/{userId}/reservations{
"id": 123,
"date": "<string>",
"timeBlockId": 123,
"patientId": 123,
"doctorId": 123,
"status": "<string>",
"reason": "<string>",
"notes": "<string>",
"patient": {},
"doctor": {},
"timeBlock": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}Authorization: Bearer <token>
PENDING, CONFIRMED, CANCELLED, or COMPLETED{
"error": "Unauthorized"
}
{
"error": "Error message details"
}
curl -X GET https://api.example.com/api/users/42/reservations \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
[
{
"id": 89,
"date": "2026-03-15T10:00:00.000Z",
"timeBlockId": 42,
"patientId": 12,
"doctorId": 5,
"status": "PENDING",
"reason": "Consulta general",
"notes": "Paciente presenta síntomas de gripe",
"createdAt": "2026-03-03T14:30:00.000Z",
"updatedAt": "2026-03-03T14:30:00.000Z"
},
{
"id": 90,
"date": "2026-03-16T14:30:00.000Z",
"timeBlockId": 45,
"patientId": 12,
"doctorId": 7,
"status": "CONFIRMED",
"reason": "Seguimiento",
"notes": null,
"createdAt": "2026-03-03T15:00:00.000Z",
"updatedAt": "2026-03-03T16:00:00.000Z"
}
]