Search appointments
Appointments in a date window of up to 31 days, filtered by location, practitioner, patient and status.
A read that takes its filter as a JSON body. It answers 200, not 201.
API-key only, gated on devapi_appointments_search. Responses carry
Cache-Control: no-store.
Parameters
Headers
x-api-keystringrequiredExample: mk_…Your Developer API key. Server-side only.
X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.
Content-TypestringrequiredExample: application/jsonThe body is JSON. Anything else is a 415.
Body
fromDatedaterequiredExample: 2026-11-01Inclusive, in the location's timezone.
toDatedaterequiredExample: 2026-11-30Inclusive. At most 31 days after fromDate.
addressIdintegerExample: 1Only appointments at this location.
doctorIdsstring[]max: 50Example: ["MDU_A1B2C3D4E5F6"]MDU_… staff ids. Internal numeric ids are refused.
patientIdintegerExample: 4821Only this patient's appointments.
statusesstring[]Example: ["CANCELLED","COMPLETED"]Any of SCHEDULED, CONFIRMED, CANCELLED, COMPLETED, RESCHEDULED, IN_CONSULTATION, NO_SHOW, OVERDUE, MISSED.
pageintegermin: 0Default: 0Zero-based page number.
sizeintegermin: 1max: 100Default: 20Page size. Over 100 is a 400, not a silent clamp.
The body is strict: a field not listed here, workspaceId included, is a
400 UNKNOWN_FIELD naming it, rather than being silently ignored.
Dates are the clinic's days. fromDate and toDate are read in the
location's timezone (the addressId's, or the workspace's first location), so a
day runs from that clinic's midnight to midnight, whatever zone your server is in.
updatedSince is not accepted here
updatedSince on this route is a 400. The underlying search has no change
filter, and accepting the field without applying it would look like a working
filter. To pick up changes made in the Medos dashboard, poll a recent date
window, narrow it with statuses, and send the previous ETag as
If-None-Match to skip unchanged pages. See Polling and caching.
Responses
The 200 is a page of
appointments.