The message model represents the core building block of conversations in Protocol. It contains details about the message content, the sender, timestamps, and associated metadata like reactions and attachments.
{
"id": "string", // Unique identifier for the message
"conversation_id": "string", // Unique identifier for the conversation
"contact": "object", // The contact object for the sender
"message": "string", // The message content
"reactions": "array", // Array of reaction objects
"attachments": "array", // Array of attachment objects
"read_at": "timestamp", // When the message was read
"created_at": "timestamp", // When the message was created
"updated_at": "timestamp" // When the message was last updated
}