{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-email-template-view-schema.json",
  "title": "EmailTemplateView",
  "description": "A saved composition template.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-emails-api-openapi.yml#/components/schemas/EmailTemplateView",
  "type": "object",
  "required": [
    "id",
    "name",
    "subject",
    "body_html",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "body_html": {
      "type": "string",
      "description": "Sanitized body, with `{{variable}}` placeholders left in place."
    },
    "created_at": {
      "type": "string",
      "description": "Creation timestamp, RFC 3339."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Template id."
    },
    "name": {
      "type": "string",
      "description": "Name, unique within the org."
    },
    "subject": {
      "type": "string",
      "description": "Subject line, with `{{variable}}` placeholders left in place."
    },
    "updated_at": {
      "type": "string",
      "description": "Last update, RFC 3339."
    }
  }
}