Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/bentlyy/Clinica/llms.txt

Use this file to discover all available pages before exploring further.

Two endpoints expose booking lists: patients use /bookings/me to see their own upcoming and past appointments, while doctors use /bookings/doctor to view all appointments scheduled with them. Both require a valid JWT; the doctor endpoint additionally requires the doctor role.

Endpoints

GET /api/bookings/me — patient bookings

Returns all bookings for the authenticated patient, joined with doctor details. Headers
Authorization
string
required
Bearer token for a patient account. Format: Bearer <token>
Response fields
id
integer
Booking ID.
date
string
Appointment date (YYYY-MM-DD).
time
string
Appointment start time (HH:MM).
duration
integer
Appointment length in minutes.
doctor_name
string
Full name of the doctor.
specialty
string
Doctor’s medical specialty.

GET /api/bookings/doctor — doctor’s appointments

Returns all bookings for the authenticated doctor, joined with patient details. Requires the doctor role. Headers
Authorization
string
required
Bearer token for a doctor account. Format: Bearer <token>
Response fields
id
integer
Booking ID.
date
string
Appointment date (YYYY-MM-DD).
time
string
Appointment start time (HH:MM).
duration
integer
Appointment length in minutes.
patient_email
string
Email address of the patient.
curl --request GET \
  --url https://your-clinica-host/api/bookings/me \
  --header 'Authorization: Bearer <patient-token>'
[
  {
    "id": 42,
    "date": "2026-05-15",
    "time": "10:00:00",
    "duration": 30,
    "doctor_name": "Dr. Ana Ruiz",
    "specialty": "Cardiology"
  }
]

Build docs developers (and LLMs) love