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:
| Mode | Triggered by | Feature item | Typical result |
|---|---|---|---|
| Identifier lookup | mrn, email, or phoneNumber (with countryCode) | devapi_patients_lookup | Zero or one patient |
| Roster | Anything else, including no filter at all | devapi_patients_list | A 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-0774The clinic's medical record number. Identifier mode.
emailstringExample: asha@example.comIdentifier mode.
countryCodestringExample: +91Only together with phoneNumber.
phoneNumberstringExample: 9811100001National number without the country code. Identifier mode.
namestringExample: AshaRoster filter on the patient's name.
dobdateExample: 1990-04-12Date of birth, YYYY-MM-DD.
gender"MALE" | "FEMALE" | "OTHER"enumRoster filter.
addressIdintegerExample: 1A clinic location, from GET /v1/addresses.
doctorIdstringExample: MDU_A1B2C3D4E5F6A practitioner's MDU_… staff id, from GET /v1/doctors. Not a number.
archived"true" | "false"enumInclude or select archived patients.
updatedSincedate-timeExample: 2026-11-01T00:00:00ZOnly patients changed at or after this instant. ISO-8601 with an offset; inclusive.
pageintegermin: 0Default: 0Zero-based page number.
sizeintegermin: 1max: 100Default: 20Page 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_A1B2C3D4E5F6The 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:00Zor2026-11-13T10:00:00+05:30. A bare date or a time with no offset is a400, 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.