{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-email-template-dto-schema.json",
  "title": "EmailTemplateDto",
  "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/EmailTemplateDto",
  "type": "object",
  "properties": {
    "templateId": {
      "type": "string",
      "description": "Template identifier."
    },
    "title": {
      "type": "string",
      "description": "Internal name used to find the template."
    },
    "subject": {
      "type": "string",
      "description": "Subject line. May contain `{{field_api_name}}` placeholders that are filled per recipient."
    },
    "body": {
      "type": "string",
      "description": "HTML body. May contain `{{field_api_name}}` placeholders that are filled per recipient."
    },
    "tableId": {
      "type": "string",
      "description": "Object whose records this template is written for, e.g. the contacts object. Placeholders resolve against this object’s fields."
    },
    "cc": {
      "description": "Addresses copied on every send.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bcc": {
      "description": "Addresses blind-copied on every send.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "templateId",
    "title",
    "subject",
    "body"
  ]
}