Skip to main content
POST
/
patients
/
create
curl --request POST \
  --url https://apidev.epiqconnect.com/patients/create \
  --header 'Content-Type: application/json' \
  --header 'clinicId: <clinicid>' \
  --header 'x-api-key: <x-api-key>' \
  --data @- <<EOF
{
  "patient": {
    "ext_userid": "john-doe-123",
    "firstName": "John",
    "lastName": "O'Connor",
    "middleName": "A",
    "dateOfBirth": "1990-01-01",
    "gender": "M",
    "email": "john.doe@example.com",
    "phone": "+11234567890",
    "primaryLanguage": "EN",
    "heightInches": 72,
    "weightPounds": 180,
    "isSmoker": false,
    "isDiabetic": false,
    "isPregnant": false,
    "address": {
      "address1": "123 Main St",
      "address2": "Apt 101",
      "city": "Dallas",
      "state": "TX",
      "zipCode": "75201-4456",
      "country": "US"
    },
    "identity": {
      "driverLicenseNumber": "D1234567",
      "driverLicenseState": "TX",
      "socialSecurityNumber": "123-45-6789"
    },
    "consents": {
      "sms": true,
      "marketingOptOut": false,
      "thirdPartyOptOut": true
    },
    "riskFactors": {
      "allergies": "peanuts, shellfish",
      "conditions": "asthma, hypertension",
      "medications": "albuterol"
    }
  }
}
EOF
{
"success": [
{
"patientId": "5f020139-130b-4ce5-b3e6-8fec2c1c4c30",
"ext_userid": "Carl-doe-123",
"username": "Carl-doe-123",
"fName": "CARL",
"lName": "DOE",
"email": "CARL.DOE@EXAMPLE.COM",
"phone": "1234567890",
"userType": "patient",
"dob": "1990-01-01",
"gender": "M",
"statusCode": 201,
"message": "Patient created successfully",
"createdAt": "2025-10-13T13:56:05.974Z",
"updatedAt": "2025-10-13T13:56:05.974Z",
"clinicId": "3b47a23f-9080-4a2e-a4fa-654d9aa76e80",
"patient": {
"patientId": "93411",
"allergies": "PEANUTS, SHELLFISH",
"currentMedication": "ALBUTEROL",
"diagnosis": "ASTHMA, HYPERTENSION",
"dlState": "TX",
"dlNumber": "D1234567"
}
}
],
"errors": []
}

Headers

clinicId
string
required

Clinic ID for authentication

x-api-key
string
required

Client API key for authentication

Body

application/json
patient
object
required

Array of patients to create

Response

Patients created successfully