Skip to Content
API access is available to organizations with a signed BAA. Request API access →
API referenceThe Message object

The Message object

Messages with patients: send to a patient by ID or phone number, read patient messages by time range, and check delivery. Patient API.

Attributes

idUUIDRequired

Unique ID of the message.

conversationConversationRefRequired

The conversation a message belongs to.

Show child attributes
idUUIDRequired

ID of the conversation.

titlestringRequired

The conversation’s name as the user sees it.

senderSenderRequired

Who sent a message.

Show child attributes
idUUIDRequired

ID of the sender.

namestringRequired

The sender’s display name.

kindstaff, patient, api_keyRequired

A staff member, a patient, or an organization API key (name is the key’s name, like “Reminder service”).

patientPatientRef or nullRequired

The patient in the conversation, for patient conversations. Null otherwise.

Show child attributes
idUUIDRequired

ID of the patient.

namestringRequired

The patient’s name, or their phone number if they have no name yet.

channelapp, secure, smsRequired

How the message traveled: inside BloomText (app), by secure link, or by plain SMS.

phone_numberPhoneNumberRef or null

The clinic phone number, for SMS messages. Null otherwise.

Show child attributes
numberstringRequired

The phone number.

teamstringRequired

The team it belongs to.

deliveryDelivery or null

Delivery status, for messages sent to a patient. Null otherwise.

Show child attributes
statusqueued, sent, delivered, opened, failed, undeliveredRequired

Where the message is. opened means the patient opened a secure link.

errorstring or null

Why delivery failed, like landline, invalid_number, or opted_out. Null otherwise.

updated_attimestampRequired

When the status last changed.

campaign_idUUID or null

The campaign that sent this message. Null otherwise.

created_attimestampRequired

When the message was sent.

edited_attimestamp or null

When the message was last edited. Null if it never was.

typetext, fileRequired

Whether the message carries text or a file.

bodystring or null

Message text. Null for file messages.

fileFileReference or null

File metadata. Null for text messages.

Show child attributes
idUUIDRequired

Unique ID of the file.

namestringRequired

Original file name.

mimestring or null

MIME type, such as application/pdf.

size_bytesinteger or null

File size in bytes.

reply_to_message_idUUID or null

Message this is a reply to. Null for top-level messages.

unreadbooleanRequired

Whether the connected admin hasn’t read this message yet. Always false with an API key, which has no read state.

sent_viaApp or null

The app that sent the message on an admin’s behalf through OAuth. Null for messages sent in BloomText or with an API key. Staff see this; patients don’t.

Show child attributes
client_idstringRequired

Your app’s OAuth client ID.

namestringRequired

Your app’s name as users and staff see it.

Endpoints

MethodPathEndpoint
GET/patient-messagesList patient messages
POST/patient-messagesSend a message to a patient
GET/patient-messages/{messageId}Retrieve a patient message
GET/me/messagesList messages
GET/me/messages/{messageId}Retrieve a message
POST/me/conversations/{conversationId}/messagesSend a message
Last updated on