Server-side APIEndpointsAppointments

Read an appointment

One appointment by its SCHEDULED:<id> reference.

API-key only, gated on devapi_appointments_get. Responses carry Cache-Control: no-store.

Parameters

Path parameters

appointmentRefstringrequiredExample: SCHEDULED:91234

SCHEDULED:<id>, the id every appointment carries. A bare number means the same.

Headers

x-api-keystringrequiredExample: mk_…

Your Developer API key. Server-side only.

X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6

The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.

Responses

The appointment object

The same object is returned by search, and a visit is this plus clinical.

FieldTypeNotes
idstringSCHEDULED:<n>. Store this, and pass it back here or in appointmentRefs.
systemstringSCHEDULED, the only system today.
appointmentIdintegerThe numeric part of id.
statusstringSCHEDULED, CONFIRMED, CANCELLED, COMPLETED, RESCHEDULED, IN_CONSULTATION, NO_SHOW, OVERDUE or MISSED.
visitType, modestring | null
appointmentDatestringYYYY-MM-DD in the clinic's timezone.
fromDateTimeIso, toDateTimeIsostringISO-8601 with offset. Always present on an appointment.
timezonestring | nullIANA name, e.g. Asia/Kolkata.
tokenDisplaystring | nullSet only for a token booking; the same value as queueToken.display.
queueTokenobject | nullnull for a slot booking. For a token: number, display (e.g. C-013), sessionId (a session), estimatedStart (the live estimate, with offset; given in search results and null on this read, and null once the token is being seen, done, cancelled or overdue) and trackingUrl (the patient's live tracking page; on this read only, null in search results). A token is called by number, so fromDateTimeIso is only the estimate made at booking. On a visit only display is set.
visitNumberinteger | nullThe patient's visit ordinal at this clinic. null for cancelled rows.
patientobjectid, mrn, name.
practitionerobjectid is an MDU_… staff id, a string. id and name are null together.
locationobjectid resolves against GET /v1/addresses.
reasonForVisit, bookingSourcestring | null
paymentobjectamount is a decimal string ("800"), never a JSON number. method is the clinic's own label; do not branch on it.
cancellationobject | nulltype, reason, at when cancelled.
prescriptionIdsinteger[]Prescriptions written at this appointment.
updatedAtstring | null
Test request