{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-create-email-template-dto-schema.json",
  "title": "CreateEmailTemplateDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-email-api-openapi.yml#/components/schemas/CreateEmailTemplateDto",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Internal name used to find the template later."
    },
    "subject": {
      "type": "string",
      "description": "Subject line. Use `{{field_api_name}}` to insert a value from each recipient’s record — call listEmailTemplateVariables to see which names are valid."
    },
    "body": {
      "type": "string",
      "description": "HTML body. Supports the same `{{field_api_name}}` placeholders as the subject. An unknown placeholder renders as empty text."
    },
    "tableId": {
      "type": "string",
      "description": "Object whose records this template will be sent to, e.g. the contacts object. Determines which `{{placeholders}}` are valid."
    },
    "cc": {
      "description": "Addresses to copy on every send.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bcc": {
      "description": "Addresses to blind-copy on every send.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "title",
    "subject",
    "body",
    "tableId"
  ]
}