{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-message-response-schema.json",
  "title": "MessageResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brevo-messages-api-openapi.yml#/components/schemas/MessageResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the message."
    },
    "type": {
      "type": "string",
      "description": "Type of the message sender.",
      "enum": [
        "agent",
        "visitor",
        "bot"
      ]
    },
    "text": {
      "type": "string",
      "description": "Text content of the message."
    },
    "visitorId": {
      "type": "string",
      "description": "Unique identifier of the visitor."
    },
    "agentId": {
      "type": "string",
      "description": "Unique identifier of the agent if applicable."
    },
    "agentName": {
      "type": "string",
      "description": "Display name of the agent if applicable."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "UTC date-time when the message was created."
    }
  }
}