{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-message-schema.json",
  "title": "Message",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-messages-api-openapi.yml#/components/schemas/Message",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Sender’s phone number must be Phone.com’s"
    },
    "to": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "List of phone numbers to send the message to"
    },
    "text": {
      "type": "string",
      "description": "The message text"
    },
    "media": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "Base64 encoded media file"
          },
          "filename": {
            "type": "string",
            "description": "Name of the file"
          }
        },
        "required": [
          "data"
        ]
      },
      "description": "Array of objects for mms items"
    },
    "tag": {
      "type": "string",
      "description": "Client-side tracking identifier"
    }
  },
  "required": [
    "from",
    "to"
  ]
}