Check what’s free
mode: "time", book a start) or a queue of walk-in numbers (mode: "queue", book a date and get the next_number). mode: "closed" means the doctor doesn’t work that day.
Book
- Send
patient_idfor a known patient, or apatientobject to create or match one in the same call (see Sync patients). type: "follow_up"books a follow-up visit (priced as one).duration_minutesoverrides the doctor’s session length.notify_patient: truesends the booking confirmation on WhatsApp (SMS when WhatsApp can’t reach them). The default isfalse, for when your system confirms itself.- Docistra checks the doctor’s hours, days off, breaks and other bookings. Organizations whose schedule lives in your system can skip the hours check with
enforce_schedule: false(see Master record).
Move
doctor_id or branch_id the same way. The patient is told about the new time unless you send notify_patient: false.
Cancel
notify_patient: false. Cancelling a whole day for a doctor? Use Doctor day off.
Check-in and visit status
POST /appointments/{id}/status with arrived, in_progress, completed or no_show keeps the clinic’s board in step with your front desk.
Bookings made in Docistra
The AI agent books on WhatsApp, patients book on the clinic’s page, and reception books in Docistra. Listen toappointment.created: source tells you where it came from. Create it in your system and link it back with PATCH /appointments/{id} {"external_id": "..."}.