Send/Receive encrypted messaged either W2W or S2W.
Messages are what conversations are made of in Protocol — they are the basic building blocks of your conversations with your Protocol contacts. On this page, we'll dive into the different message endpoints you can use to manage messages programmatically. We'll look at how to query, send, update, and delete messages.
The message model contains all the information about the messages and attachments you send to your contacts and groups, including how your contacts have reacted to them.
id
Unique identifier for the message.
conversation_id
Unique identifier for the conversation the message belongs to.
contact
The contact object for the contact who sent the message.
message
The message content.
reactions
An array of reaction objects associated with the message.
attachments
An array of attachment objects associated with the message.
read_at
Timestamp of when the message was read.
created_at
Timestamp of when the message was created.
updated_at
Timestamp of when the message was last updated.