# The Patient object

> Attributes of a BloomText Patient and the endpoints that return it.

Source: https://www.bloomtext.com/developers/api/reference/patient-object/

Patient records, always found by patient ID, phone number, or MRN. Patient API.

### Attributes

- `id` (UUID, required): Unique ID of the patient.

- `first_name` (string or null, required): First name. Null for a patient created from an unknown phone number.

- `last_name` (string or null, required): Last name.

- `date_of_birth` (date or null, required): Date of birth.

- `phone` (string or null, required): Mobile number in E.164 format.

- `email` (string or null, required): Email address.

- `mrn` (string or null, required): The patient's ID in your system, such as an MRN. Up to 36 characters, unique in the organization.

- `sms_opted_out` (boolean, required): Whether your organization's numbers can't text the patient, for any reason: true exactly when sms_undeliverable_reasons isn't empty. Secure-link messages by email still work.

- `sms_undeliverable_reasons` (array of opted_out, carrier_blocked, admin_blocked, unreachable, required): Why your organization's numbers can't text the patient, most important first: opted_out (the patient replied STOP to one of your numbers, or staff recorded their opt-out; the patient lifts it by texting START), carrier_blocked (the carrier refused a text because the patient replied STOP to that number; they lift it by texting START to one of your numbers), admin_blocked (an admin blocked the number; only an admin can unblock it), unreachable (an earlier text failed because the number is a landline or its carrier can't be reached; it clears when the patient texts one of your numbers, their phone number is changed, or an admin clears it). Each reason blocks every one of your numbers. Empty when the patient can be texted.

- `conversation_count` (integer, required): How many conversations the patient has in the organization, on any phone number.

- `created_at` (timestamp, required): When the patient was created.

- `matched_by` (mrn, phone, email, null): On Create a patient: which field matched an existing patient. Null when the patient was just created.

### Endpoints

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/patients` | [Find patients](https://www.bloomtext.com/developers/api/reference/list-patients/) |
| POST | `/patients` | [Create a patient](https://www.bloomtext.com/developers/api/reference/create-patient/) |
| GET | `/patients/{patientId}` | [Retrieve a patient](https://www.bloomtext.com/developers/api/reference/get-patient/) |
| PATCH | `/patients/{patientId}` | [Update a patient](https://www.bloomtext.com/developers/api/reference/update-patient/) |
| DELETE | `/patients/{patientId}` | [Delete a patient](https://www.bloomtext.com/developers/api/reference/delete-patient/) |

```json filename="The Patient object"
{
  "id": "5a1c9e2b-7d44-4f1a-9c3e-2b8d6f0a1e77",
  "first_name": "Jane",
  "last_name": "Doe",
  "date_of_birth": "1986-04-12",
  "phone": "+15125550143",
  "email": "jane.doe@example.com",
  "mrn": "MRN-20931",
  "sms_opted_out": false,
  "sms_undeliverable_reasons": [],
  "conversation_count": 2,
  "created_at": "2026-02-03T17:22:10Z",
  "matched_by": null
}
```
