{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/chat-api-message-structure.json",
  "name": "Message",
  "description": "A chat message normalized through Merge Chat Unified API.",
  "type": "object",
  "properties": {
    "id": { "type": "uuid" },
    "remote_id": { "type": "string" },
    "conversation": { "type": "uuid" },
    "author": { "type": "uuid" },
    "content": { "type": "string" },
    "content_html": { "type": "string" },
    "parent_message": { "type": "uuid" },
    "attachments": { "type": "array", "items": { "type": "string" } },
    "mentions": { "type": "array", "items": { "type": "uuid" } },
    "sent_at": { "type": "datetime" },
    "remote_was_deleted": { "type": "boolean" },
    "created_at": { "type": "datetime" },
    "modified_at": { "type": "datetime" }
  }
}
