Server-side APIEndpointsPatients

Find or list patients

Identifier lookup and roster paging on one route, plus updatedSince for change detection.

One route, two jobs. Which one runs depends on the query you send, and so does the feature item it needs:

ModeTriggered byFeature itemTypical result
Identifier lookupmrn, email, or phoneNumber (with countryCode)devapi_patients_lookupZero or one patient
RosterAnything else, including no filter at alldevapi_patients_listA page of the clinic's patients

A roster pull walks the whole clinic, so it is granted separately from a lookup. A key with only devapi_patients_lookup gets a 403 FEATURE_NOT_ENTITLED for a request with no identifier, and the body's requiredFeature says which item was missing.

API-key only. Responses carry Cache-Control: no-store.

Parameters

Query parameters

mrnstringExample: MRN-0774

The clinic's medical record number. Identifier mode.

emailstringExample: asha@example.com

Identifier mode.

countryCodestringExample: +91

Only together with phoneNumber.

phoneNumberstringExample: 9811100001

National number without the country code. Identifier mode.

namestringExample: Asha

Roster filter on the patient's name.

dobdateExample: 1990-04-12

Date of birth, YYYY-MM-DD.

gender"MALE" | "FEMALE" | "OTHER"enum

Roster filter.

addressIdintegerExample: 1

A clinic location, from GET /v1/addresses.

doctorIdstringExample: MDU_A1B2C3D4E5F6

A practitioner's MDU_… staff id, from GET /v1/doctors. Not a number.

archived"true" | "false"enum

Include or select archived patients.

updatedSincedate-timeExample: 2026-11-01T00:00:00Z

Only patients changed at or after this instant. ISO-8601 with an offset; inclusive.

pageintegermin: 0Default: 0

Zero-based page number.

sizeintegermin: 1max: 100Default: 20

Page size. Over 100 is a 400, not a silent clamp.

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.

Any other parameter, workspaceId included, is a 400 UNKNOWN_FIELD naming it.

updatedSince is the change feed

There are no webhooks, so this is how an integration learns what changed: poll with the newest updatedAt you already hold.

  • It must be a full ISO-8601 date-time with an offset, such as 2026-11-13T04:30:00Z or 2026-11-13T10:00:00+05:30. A bare date or a time with no offset is a 400, because it does not say which instant it means.
  • The comparison is inclusive. A record updated at exactly that instant comes back again rather than being missed, so de-duplicate on id.
  • Paging is offset-based. If records change while you page, rows can shift between pages. That is much less likely when the result set is the changes rather than the whole roster, but it can happen: stop when a page comes back short, and let the next poll pick up anything that moved.

Send the previous response's ETag as If-None-Match and an unchanged page is a 304 with no body. See Polling and caching.

Responses

The response is a page of patient objects.

Test request