# API reference

> Every BloomText API endpoint and object, with parameters, scopes, example requests, and responses, and the OpenAPI spec to download.

Source: https://www.bloomtext.com/developers/api/reference/

The BloomText API is a REST API with JSON request and response bodies, standard HTTP status codes, and bearer authentication with an API key. Everything on these pages is generated from the OpenAPI spec below, which you can also import into Postman, Okta Workflows, or any client generator.

Download the OpenAPI spec: [OpenAPI 3.1 (YAML)](https://www.bloomtext.com/developers/api/openapi/bloomtext-api.yaml), [OpenAPI 3.1 (JSON)](https://www.bloomtext.com/developers/api/openapi/bloomtext-api.json), [OpenAPI 3.0](https://www.bloomtext.com/developers/api/openapi/bloomtext-api-3.0.yaml) (Okta Workflows), [Swagger 2.0](https://www.bloomtext.com/developers/api/openapi/bloomtext-api-2.0.yaml) (Power Automate), and a [Postman collection](https://www.bloomtext.com/developers/api/postman/bloomtext-api.postman_collection.json).

```text filename="Base URL"
https://api.bloomtext.com/v1
```

> **Note:** New to the API? Start with the [Patient API quickstart](https://www.bloomtext.com/developers/api/patient-api-quickstart/), then read [Authentication](https://www.bloomtext.com/developers/api/authentication/) for API keys and scopes. To provision staff, see [Manage members](https://www.bloomtext.com/developers/api/members-api/).

## Endpoints by credential

  - [All Patient API endpoints](https://www.bloomtext.com/developers/api/reference/patient-api-endpoints/)
  - [All account endpoints](https://www.bloomtext.com/developers/api/reference/account-endpoints/)
  - [All OAuth endpoints](https://www.bloomtext.com/developers/api/reference/oauth-endpoints/)

## Resources

  - [Organization](https://www.bloomtext.com/developers/api/reference/organization-object/)
  - [Patients](https://www.bloomtext.com/developers/api/reference/patient-object/)
  - [Patient imports](https://www.bloomtext.com/developers/api/reference/patient-import-object/)
  - [Patient messages](https://www.bloomtext.com/developers/api/reference/message-object/)
  - [Patient conversations](https://www.bloomtext.com/developers/api/reference/conversation-object/)
  - [Phone numbers](https://www.bloomtext.com/developers/api/reference/phone-number-object/)
  - [Campaigns](https://www.bloomtext.com/developers/api/reference/campaign-object/)
  - [Profile](https://www.bloomtext.com/developers/api/reference/profile-object/)
  - [Messages](https://www.bloomtext.com/developers/api/reference/message-object/)
  - [Reactions](https://www.bloomtext.com/developers/api/reference/reaction-object/)
  - [Conversations](https://www.bloomtext.com/developers/api/reference/conversation-object/)
  - [Participants](https://www.bloomtext.com/developers/api/reference/participant-object/)
  - [Users](https://www.bloomtext.com/developers/api/reference/user-object/)
  - [Organizations](https://www.bloomtext.com/developers/api/reference/org-object/)
  - [Members](https://www.bloomtext.com/developers/api/reference/member-object/)
  - [Teams](https://www.bloomtext.com/developers/api/reference/team-object/)
  - [Member events](https://www.bloomtext.com/developers/api/reference/member-event-object/)
  - [Audit events](https://www.bloomtext.com/developers/api/reference/audit-event-object/)

## Conventions

- **Authentication:** send an API key as `Authorization: Bearer …`. See [Authentication](https://www.bloomtext.com/developers/api/authentication/).
- **Access:** an API key reaches the Patient API: patient records by ID, phone, or MRN, and bounded reads of patient messages. With member scopes it also reaches the account endpoints for organizations, members and teams.
- **Turned on per account:** some endpoints, including OAuth, which reaches a person's own conversations under `/me`, are turned on for an account that asks; their pages have a **Request access** button.
- **Organizations:** a key that reaches more than one organization names one with `org_id` on every call. See [Organizations a key reaches](https://www.bloomtext.com/developers/api/api-keys/#organizations-a-key-reaches).
- **Search:** message lists take a `q` of words and operators, like `refill from:patient`. See [Search](https://www.bloomtext.com/developers/api/search/).
- **IDs:** objects have a stable `id`, usually a UUID.
- **Timestamps:** RFC 3339 strings in UTC, like `2026-09-21T12:00:00Z`.
- **Lists:** cursor-paginated with `page[limit]` and `page[after]`. See [Pagination](https://www.bloomtext.com/developers/api/pagination/).
- **Writes:** every `POST` takes an `Idempotency-Key`. See [Idempotency](https://www.bloomtext.com/developers/api/idempotency/).
- **Errors:** RFC 9457 problem details. See [Errors](https://www.bloomtext.com/developers/api/errors/).

## All endpoints

### Organization

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/organization` | [Retrieve the organization](https://www.bloomtext.com/developers/api/reference/get-organization/) |

### Patients

| 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/) |

### Patient imports

| Method | Path | Endpoint |
| --- | --- | --- |
| POST | `/patient-imports` | [Import patients](https://www.bloomtext.com/developers/api/reference/create-patient-import/) |
| GET | `/patient-imports/{importId}` | [Retrieve an import](https://www.bloomtext.com/developers/api/reference/get-patient-import/) |

### Patient messages

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/patient-messages` | [List patient messages](https://www.bloomtext.com/developers/api/reference/list-patient-messages/) |
| POST | `/patient-messages` | [Send a message to a patient](https://www.bloomtext.com/developers/api/reference/send-message/) |
| POST | `/messages:batch` | [Send messages to patients in a batch](https://www.bloomtext.com/developers/api/reference/send-message-batch/) |
| GET | `/patient-messages/{messageId}` | [Retrieve a patient message](https://www.bloomtext.com/developers/api/reference/get-patient-message/) |

### Patient conversations

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/patient-conversations` | [List patient conversations](https://www.bloomtext.com/developers/api/reference/list-patient-conversations/) |
| GET | `/patient-conversations/{conversationId}` | [Retrieve a patient conversation](https://www.bloomtext.com/developers/api/reference/get-patient-conversation/) |

### Phone numbers

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/phone-numbers` | [List phone numbers](https://www.bloomtext.com/developers/api/reference/list-phone-numbers/) |

### Campaigns

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/campaigns` | [List campaigns](https://www.bloomtext.com/developers/api/reference/list-campaigns/) |
| POST | `/campaigns` | [Create a campaign](https://www.bloomtext.com/developers/api/reference/create-campaign/) |
| GET | `/campaigns/{campaignId}` | [Retrieve a campaign](https://www.bloomtext.com/developers/api/reference/get-campaign/) |
| PATCH | `/campaigns/{campaignId}` | [Update a campaign](https://www.bloomtext.com/developers/api/reference/update-campaign/) |
| DELETE | `/campaigns/{campaignId}` | [Delete a campaign](https://www.bloomtext.com/developers/api/reference/delete-campaign/) |
| GET | `/campaigns/{campaignId}/recipients` | [List campaign recipients](https://www.bloomtext.com/developers/api/reference/list-campaign-recipients/) |
| POST | `/campaigns/{campaignId}/recipients` | [Add campaign recipients](https://www.bloomtext.com/developers/api/reference/add-campaign-recipients/) |
| POST | `/campaigns/{campaignId}/recipients/remove` | [Remove campaign recipients](https://www.bloomtext.com/developers/api/reference/remove-campaign-recipients/) |
| POST | `/campaigns/{campaignId}/start` | [Start a campaign](https://www.bloomtext.com/developers/api/reference/start-campaign/) |
| POST | `/campaigns/{campaignId}/pause` | [Pause a campaign](https://www.bloomtext.com/developers/api/reference/pause-campaign/) |
| POST | `/campaigns/{campaignId}/stop` | [Stop a campaign](https://www.bloomtext.com/developers/api/reference/stop-campaign/) |

### Profile

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/me` | [Retrieve the profile](https://www.bloomtext.com/developers/api/reference/get-profile/) |

### Messages

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/me/messages` | [List messages](https://www.bloomtext.com/developers/api/reference/list-messages/) |
| GET | `/me/messages/{messageId}` | [Retrieve a message](https://www.bloomtext.com/developers/api/reference/get-message/) |
| POST | `/me/conversations/{conversationId}/messages` | [Send a message](https://www.bloomtext.com/developers/api/reference/create-message/) |

### Reactions

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/me/messages/{messageId}/reactions` | [List reactions](https://www.bloomtext.com/developers/api/reference/list-reactions/) |
| POST | `/me/messages/{messageId}/reactions` | [Add a reaction](https://www.bloomtext.com/developers/api/reference/create-reaction/) |
| DELETE | `/me/messages/{messageId}/reactions` | [Remove a reaction](https://www.bloomtext.com/developers/api/reference/delete-reaction/) |

### Conversations

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/me/conversations` | [List conversations](https://www.bloomtext.com/developers/api/reference/list-conversations/) |
| GET | `/me/conversations/{conversationId}` | [Retrieve a conversation](https://www.bloomtext.com/developers/api/reference/get-conversation/) |

### Participants

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/me/conversations/{conversationId}/participants` | [List participants](https://www.bloomtext.com/developers/api/reference/list-participants/) |

### Users

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/users` | [List users](https://www.bloomtext.com/developers/api/reference/list-users/) |
| GET | `/users/{userId}` | [Retrieve a user](https://www.bloomtext.com/developers/api/reference/get-user/) |

### Organizations

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/orgs` | [List organizations](https://www.bloomtext.com/developers/api/reference/list-orgs/) |

### Members

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/members` | [List members](https://www.bloomtext.com/developers/api/reference/list-members/) |
| POST | `/members` | [Add a member](https://www.bloomtext.com/developers/api/reference/create-member/) |
| GET | `/members/{memberId}` | [Retrieve a member](https://www.bloomtext.com/developers/api/reference/get-member/) |
| PATCH | `/members/{memberId}` | [Update a member](https://www.bloomtext.com/developers/api/reference/update-member/) |
| DELETE | `/members/{memberId}` | [Remove a member](https://www.bloomtext.com/developers/api/reference/delete-member/) |

### Teams

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/teams` | [List teams](https://www.bloomtext.com/developers/api/reference/list-teams/) |
| POST | `/teams/{teamId}/members` | [Add a member to a team](https://www.bloomtext.com/developers/api/reference/add-team-member/) |
| DELETE | `/teams/{teamId}/members/{memberId}` | [Remove a member from a team](https://www.bloomtext.com/developers/api/reference/remove-team-member/) |

### Member events

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/member-events` | [List member events](https://www.bloomtext.com/developers/api/reference/list-member-events/) |

### Audit events

| Method | Path | Endpoint |
| --- | --- | --- |
| GET | `/audit-events` | [List audit events](https://www.bloomtext.com/developers/api/reference/list-audit-events/) |
