{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thrivedesk/json-schema/thrivedesk-inbox-conversation-create-schema.json",
  "title": "InboxConversationCreate",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thrivedesk-openapi.yml#/components/schemas/InboxConversationCreate",
  "type": "object",
  "required": [
    "to",
    "status",
    "subject",
    "message"
  ],
  "properties": {
    "to": {
      "type": "string",
      "format": "email",
      "maxLength": 100
    },
    "status": {
      "type": "string",
      "enum": [
        "Active",
        "Pending",
        "Closed"
      ]
    },
    "subject": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "cc": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "format": "email"
      }
    },
    "bcc": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "format": "email"
      }
    },
    "agent": {
      "type": [
        "string",
        "null"
      ],
      "description": "ID of the agent to assign."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "is_draft": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "message_id": {
      "type": "string",
      "format": "uuid"
    },
    "intended_inbox_address_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "contact": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 191
        },
        "company": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 191
        },
        "job_title": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 191
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 191
        },
        "website": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 191
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_actor": {
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "custom_fields": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "Map of custom-field keys to values."
    }
  }
}