Skip to main content
POST
Create or match a patient

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
external_id
string | null
Maximum string length: 200
name
string

Required on create.

Maximum string length: 200
phone
string | null

Egyptian mobile in any spelling, or an international number starting with + or 00.

contact_phone
string | null
gender
enum<string> | null
Available options:
male,
female,
null
date_of_birth
string<date> | null
age
integer | null
Required range: 0 <= x <= 130
address
string | null
Maximum string length: 500
nationality
string | null

Country code or name, e.g. EG / Egypt / مصر

file_number
string | null
Maximum string length: 30
holder_id
string

Create as a family member of this patient (create only).

relationship
enum<string> | null
Available options:
son,
daughter,
wife,
husband,
father,
mother,
brother,
sister,
grandson,
granddaughter,
grandfather,
grandmother,
other,
null

Response

Matched an existing patient (updated)

data
object
created
boolean