{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/firma-dev/main/json-schema/firma-dev-email-template-schema.json",
  "title": "EmailTemplate",
  "description": "Custom email template for signing request notifications",
  "x-generated": "2026-09-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firma-dev-email-templates-api-openapi.yml#/components/schemas/EmailTemplate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the email template"
    },
    "email_type": {
      "type": "string",
      "enum": [
        "signing_invite",
        "next_signer",
        "signing_expired",
        "signing_cancelled",
        "signing_declined"
      ],
      "description": "Type of email this template is for"
    },
    "subject": {
      "type": "string",
      "description": "Email subject line"
    },
    "body": {
      "type": "string",
      "description": "Email body (HTML). Supports placeholders like {{signing_link}}, {{signer_name}}, etc."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Template creation timestamp"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Template last update timestamp"
    }
  },
  "required": [
    "email_type",
    "subject",
    "body"
  ]
}