Overview
This endpoint allows authorized staff or external systems to create a new patient profile within the clinic.
Behavior:
- Identity Check: Checks if a patient with the provided
email already exists in the current tenant.
- Record Creation:
- If email is unique: Creates a new User account and Patient Profile.
- If email exists: Returns a
409 Conflict error. This endpoint does not update existing records.
This endpoint uses Machine-to-Machine (M2M) authentication.
Standard Bearer token (e.g., Bearer <your_access_token>). See the M2M Authentication guide for details on generating this token.
Must be set to application/json.
Body Parameters
The patient’s first name.
The patient’s email address. Must be unique within the clinic.
The patient’s date of birth in YYYY-MM-DD format.
The country dialing code for the phone number (e.g., “+1”).
The patient’s primary phone number (digits only).
Optional Fields
The patient’s gender (Accepted values: “male”, “female”, “other”).
Primary street address (Line 1).
Secondary address information (Line 2, Apt/Suite).
Unique identifier (UUID) of the city.
Unique identifier (UUID) of the state.
Unique identifier (UUID) of the country.
Unique identifier (UUID) of the state relevant for the Good Faith Estimate (GFE).
General notes regarding the patient.
Phone number for the emergency contact.
Country dialing code for the emergency contact (e.g., “+1”).
Full name of the emergency contact.
Name of the patient’s employer.
Marital status (e.g., “single”, “married”, “divorced”).
isHomeAddressSameAsShipping
Flag indicating if the shipping address matches the home address.
Free text field for insurance details.
Free text field for medical history.
Response Parameters
The unique UUID assigned to the new patient.
Identity verification status (e.g., “NOTVERIFIED”, “VERIFIED”, “INVITED”).
JSON object for storing additional dynamic data.
ISO 8601 timestamp of creation.
ISO 8601 timestamp of last update.
Status Codes
| Status | Description |
|---|
201 | Created. The patient profile was successfully created. |
400 | Bad Request. Missing required fields or invalid data formats (e.g., invalid email). |
401 | Unauthorized. Invalid or missing authentication token. |
409 | Conflict. A patient with this email address already exists. |
curl -X POST "https://api.wizlo.example.com/clients" \
-H "Authorization: Bearer <your_access_token>" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Jaime",
"lastName": "Reyes",
"dateOfBirth": "1992-01-01",
"email": "blue.beetle3@reachtech.org",
"gender": "male",
"countryCode": "+1",
"phone": "5556667777"
}'
{
"user_id": "acf919e9-4661-444f-8496-afb07e731a6f",
"firstName": "Jaime",
"lastName": "Reyes",
"email": "blue.beetle@reachtech.org",
"dateOfBirth": "1992-01-01T00:00:00.000Z",
"sex": "male",
"phone": "5556667777",
"countryCode": "+1",
"isVerified": "NOTVERIFIED",
"address1": "1 El Paso Street",
"address2": null,
"cityId": null,
"stateId": null,
"countryId": null,
"postal": "79901",
"metadata": null,
"createdAt": "2025-11-27T10:22:57.894Z",
"updatedAt": "2025-11-27T10:22:57.894Z"
}