Bookings are the core of Clinica. You can check which time slots a doctor has open, create an appointment, view all your upcoming bookings, and cancel an appointment you no longer need. A confirmation email is sent to your address whenever you book or cancel. All booking endpoints require authentication. Include your JWT token in every request — see Authenticate with Clinica for how to obtain one.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.
Check available slots
Before booking, check which time slots a doctor has open on a given date. This endpoint returns a list of available start times, spaced 15 minutes apart, that fit within the doctor’s working hours and are not already taken.| Parameter | Required | Description |
|---|---|---|
doctor_id | Yes | The ID of the doctor you want to book. |
date | Yes | The date to check, in YYYY-MM-DD format. |
duration | No | Appointment length in minutes. Defaults to 30. |
Create a booking
Once you’ve chosen a slot, create the booking. Your user ID is read from your token — you don’t need to include it in the request body.| Field | Required | Description |
|---|---|---|
doctor_id | Yes | The ID of the doctor to book with. |
date | Yes | Appointment date in YYYY-MM-DD format. Must be a future date. |
time | Yes | Appointment start time in HH:MM (24-hour) format. |
duration | No | Length in minutes. Must be between 1 and 480. Defaults to 30. |
Validation rules
The API enforces several rules when creating a booking:- The appointment must fall within the doctor’s configured availability window for that day of the week.
- The time slot must not overlap with any existing booking for that doctor.
- The time slot must not fall within a blocked exception period set by the doctor.
durationmust be between1and480minutes (8 hours maximum).timemust be inHH:MM24-hour format.
400 error with a description of the problem.
View your bookings
Retrieve all bookings associated with your account, ordered by date and time.Cancel a booking
Cancel a booking by its ID. You can only cancel your own bookings — attempting to cancel another patient’s booking returns a400 error.