Each doctor in Clinica has a weekly availability schedule that controls when patients can book appointments. Availability is defined per day of the week, with a start time and an end time. Doctors can also create exceptions to block a full day or a specific time range on a particular date — for example, to mark a holiday or a break. Patients can query any doctor’s availability without authentication. Managing availability (creating or deleting windows) requires a logged-in doctor account.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.
Day of week mapping
Theday_of_week field uses JavaScript’s Date.getDay() convention:
| Value | Day |
|---|---|
0 | Sunday |
1 | Monday |
2 | Tuesday |
3 | Wednesday |
4 | Thursday |
5 | Friday |
6 | Saturday |
View a doctor’s availability
Returns all weekly availability windows for a specific doctor, ordered by day and start time. This endpoint is public — no token required.5 with the doctor’s ID.
Response
Add an availability window (doctors only)
Authenticated doctors can define a new weekly availability window. Thedoctor_id is taken from your token — you do not supply it in the request body.
| Field | Required | Description |
|---|---|---|
day_of_week | Yes | Integer from 0 (Sunday) to 6 (Saturday). |
start_time | Yes | Window start in HH:MM format. Must be earlier than end_time. |
end_time | Yes | Window end in HH:MM format. Must be later than start_time. |
Delete an availability window (doctors only)
Remove a specific availability window by its ID. You can only delete your own windows.How exceptions affect bookings
Beyond the weekly schedule, doctors can block out specific dates using exceptions. An exception can cover a full day or a specific time range within a day. When a patient queries available slots or tries to create a booking:- If a full-day exception exists for that date, no slots are available regardless of the weekly schedule.
- If a time-range exception exists, any slot that overlaps with the blocked range is excluded.
Exception management is handled through the doctor’s admin interface and is not exposed as a patient-facing API. The effects of exceptions are visible when you query available slots via
GET /api/bookings/available-slots.