{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-send-chat-message-request-schema.json",
  "title": "SendChatMessageRequest",
  "description": "Details of the message to send.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-communication-services-chat-api-openapi.yml#/components/schemas/SendChatMessageRequest",
  "required": [
    "content"
  ],
  "type": "object",
  "properties": {
    "content": {
      "description": "Chat message content.",
      "type": "string"
    },
    "senderDisplayName": {
      "description": "The display name of the chat message sender. This property is used to populate sender name for push notifications.",
      "type": "string"
    },
    "type": {
      "$ref": "#/$defs/ChatMessageType"
    },
    "metadata": {
      "description": "Message metadata.",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "ChatMessageType": {
      "description": "The chat message type.",
      "enum": [
        "text",
        "html",
        "topicUpdated",
        "participantAdded",
        "participantRemoved"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "ChatMessageType",
        "modelAsString": true
      }
    }
  }
}