---
title: "POST /api/patient"
method: POST
path: "/api/patient"
---

# POST /api/patient

`POST /api/patient`

## Request

- Base URL: `https://forecaster.cairhealth.com`
- URL: `https://forecaster.cairhealth.com/api/patient`
- Auth: HTTP bearer

Creates a patient. `id`, `first_name`, and `last_name` are required; all other fields are optional.

## Request body

- PatientCrudRequest: Patient demographics. `id` is the external patient id, keyed by the Cair customer-patient-id naming system (https://fhir.cairhealth.com/fhir/identifier/customer-patient-id)
  - `id` string, required: External patient id
  - `first_name` string, required: Patient's first name
  - `last_name` string, required: Patient's last name
  - `name` string, nullable: Patient's full name
  - `gender` 'male' | 'female' | 'other' | 'unknown', nullable: Patient gender
  - `dob` string, nullable: Date of birth, yyyy-MM-dd
  - `email` string, nullable: Patient email address
  - `phone_number` string, nullable: Patient phone number
  - `address` object: Patient address
    - `city` string, nullable: City
    - `country` string, nullable: Country
    - `line1` string, nullable: Address line 1
    - `line2` string, nullable: Address line 2
    - `state` string, nullable: State
    - `zip` string, nullable: Postal code
  - `preferredContactMethod` string[], nullable: Preferred contact methods. Each value is one of text, email, or call. On update, an empty array clears the preference; omitting the field leaves it unchanged.

## Response `201`

Patient created successfully

- PatientCrudResponse
  - `success` boolean
  - `message` string
  - `data` object
    - `patientId` string: External patient id
    - `patientFhirId` string: FHIR id of the Patient resource

## Other responses

- `400`: Invalid request body or validation error
- `401`: Unauthorized access or invalid organization ID
- `404`: Organization or patient not found
- `409`: Patient already exists
- `500`: Server error

## Changes

- **2026-11-03** `b32380ccde9a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cairhealth/apis/cair-health-apis/changes/api/patient/post.md)

---

[API](https://skmtc.dev/cairhealth/apis/cair-health-apis.md) - [All operations](https://skmtc.dev/cairhealth/apis/cair-health-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/cairhealth/apis/cair-health-apis/revisions/b32380ccde9a?raw)
