POST
/
v1
/
patients
curl --request POST \
  --url https://api.soharhealth.com/v1/patients \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "firstName": "John",
  "lastName": "Doe",
  "dateOfBirth": "01/01/1999",
  "state": "CA"
}'
{
  "patientId": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
firstName
string
required

The patient's first name

Example:

"John"

lastName
string
required

The patient's last name

Example:

"Doe"

dateOfBirth
string
required

The patient's birth date in MM/DD/YYYY format

Example:

"09/20/2023"

state
enum<string>
required

Two-letter US state code

Available options:
AK,
AL,
AR,
AZ,
CA,
CO,
CT,
DC,
DE,
FL,
GA,
HI,
IA,
ID,
IL,
IN,
KS,
KY,
LA,
MA,
MD,
ME,
MI,
MN,
MO,
MS,
MT,
NC,
ND,
NE,
NH,
NJ,
NM,
NV,
NY,
OH,
OK,
OR,
PA,
RI,
SC,
SD,
TN,
TX,
UT,
VA,
VT,
WA,
WI,
WV,
WY
Example:

"CA"

Response

201
application/json
A patient ID
patientId
string

The Sohar ID for the patient

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"