Skip to main content
POST
Book an appointment

Authorizations

Authorization
string
header
required

Your API key (dk_live_...), from Settings > Integrations > API in Docistra.

Headers

Idempotency-Key
string

A unique value (e.g. a UUID) per operation. A retry with the same key returns the first response for 24 hours.

Maximum string length: 255

Body

application/json
doctor_id
string
required
external_id
string
Maximum string length: 200
patient_id
string

An existing patient. Or send patient.

patient
object
branch_id
string

Defaults to where the doctor works that day.

start
string<date-time>

Timed day.

date
string<date>

Queue day (walk-in numbers).

duration_minutes
integer

Defaults to the doctor's session length.

Required range: 5 <= x <= 480Must be a multiple of 5
type
enum<string>
default:reservation
Available options:
reservation,
follow_up
notes
string
Maximum string length: 2000
notify_patient
boolean
default:false

Send the booking confirmation on WhatsApp / SMS.

enforce_schedule
boolean
default:true

Master-record organizations only: false skips the working-hours checks (clashes are still refused).

Response

Booked

data
object
patient_notified
object | null

How the patient was told. null = not asked to.