{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sentfrom-ai/json-schema/sentfrom-ai-send-message-schema.json",
  "title": "SendMessage",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sentfrom-ai-openapi.json#/components/schemas/SendMessage",
  "type": "object",
  "required": [
    "inbox_id",
    "to",
    "subject"
  ],
  "properties": {
    "inbox_id": {
      "type": "string"
    },
    "to": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bcc": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "subject": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "html": {
      "type": "string"
    },
    "in_reply_to": {
      "type": "string"
    },
    "references": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "client_id": {
      "type": "string",
      "description": "Optional retry key, 1-255 UTF-8 bytes. A key binds the effective request content within this tenant. Retry with the same key and identical content; a different body or unresolved send returns 409. Never switch to a new key to retry an uncertain send. Omit it only when duplicate suppression is not needed."
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Attachment"
      }
    }
  },
  "$defs": {
    "Attachment": {
      "type": "object",
      "properties": {
        "filename": {
          "type": [
            "string",
            "null"
          ]
        },
        "content_type": {
          "type": "string"
        },
        "content_base64": {
          "type": "string"
        }
      }
    }
  }
}