{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hostfully/json-schema/hostfully-message-creation-api3-2-dto-schema.json",
  "title": "MessageCreationApi3_2Dto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostfully-messages-api-openapi.yml#/components/schemas/MessageCreationApi3_2Dto",
  "required": [
    "content",
    "leadUid",
    "type"
  ],
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "EMAIL",
        "DIRECT_MESSAGE"
      ]
    },
    "content": {
      "$ref": "#/$defs/MessageSavingContentApi3Dto"
    },
    "leadUid": {
      "type": "string"
    },
    "threadUid": {
      "type": "string"
    }
  },
  "$defs": {
    "MessageSavingContentApi3Dto": {
      "required": [
        "text"
      ],
      "type": "object",
      "properties": {
        "subject": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      }
    }
  }
}