{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-create-smtp-template-schema.json",
  "title": "CreateSmtpTemplate",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brevo-email-templates-api-openapi.yml#/components/schemas/CreateSmtpTemplate",
  "type": "object",
  "required": [
    "templateName",
    "sender"
  ],
  "properties": {
    "templateName": {
      "type": "string",
      "description": "Name for the new template."
    },
    "subject": {
      "type": "string",
      "description": "Default subject line for the template."
    },
    "htmlContent": {
      "type": "string",
      "description": "HTML content for the template body."
    },
    "sender": {
      "type": "object",
      "description": "Default sender identity for the template.",
      "required": [
        "email"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Sender display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "Sender email address."
        }
      }
    },
    "replyTo": {
      "type": "string",
      "format": "email",
      "description": "Default reply-to email address."
    },
    "isActive": {
      "type": "boolean",
      "description": "Whether to activate the template immediately."
    }
  }
}