Doctor accounts are created by an admin, not through self-registration. Once an admin creates a doctor profile withDocumentation 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.
POST /api/doctors, the doctor can log in and use the API to publish their weekly availability and monitor their appointment bookings. All doctor endpoints require a valid JWT with the doctor role.
Getting a doctor token
A doctor logs in through the same endpoint as any other user:token as Authorization: Bearer <token> on all doctor requests.
Doctor endpoints
View your profile
Set availability
day_of_week is an integer (0 = Sunday, 1 = Monday, …, 6 = Saturday). Times are in HH:MM format.
View your availability
Delete an availability block
View your appointments
Access control
All doctor endpoints useauthorizeRoles('doctor'). Requests from admin or patient accounts will receive a 403 Forbidden response even if they carry a valid JWT.
Patients can view a doctor’s availability publicly via
GET /api/availability/:id without authentication. Only the doctor themselves can create or delete their own availability blocks.