{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-template-list-schema.json",
  "title": "TemplateList",
  "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/TemplateList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of templates available."
    },
    "templates": {
      "type": "array",
      "description": "List of email template summaries.",
      "items": {
        "$ref": "#/$defs/SmtpTemplate"
      }
    }
  },
  "$defs": {
    "SmtpTemplate": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "Unique identifier of the template."
        },
        "name": {
          "type": "string",
          "description": "Name of the template."
        },
        "subject": {
          "type": "string",
          "description": "Subject line of the template."
        },
        "isActive": {
          "type": "boolean",
          "description": "Whether the template is currently active."
        },
        "htmlContent": {
          "type": "string",
          "description": "HTML content of the template body."
        },
        "sender": {
          "type": "object",
          "description": "Default sender identity for the template.",
          "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 for the template."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "UTC date-time when the template was created."
        },
        "modifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "UTC date-time when the template was last modified."
        }
      }
    }
  }
}