# 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: an API key, or an org admin's OAuth token.

### 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 the patient replied STOP to texts. Secure-link messages by email still work.

- `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,
  "conversation_count": 2,
  "created_at": "2026-02-03T17:22:10Z",
  "matched_by": null
}
```
