{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/firma-dev/main/json-schema/firma-dev-workspace-email-template-list-response-schema.json",
  "title": "WorkspaceEmailTemplateListResponse",
  "description": "List of workspace email templates",
  "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/WorkspaceEmailTemplateListResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EmailTemplate"
      }
    },
    "workspace_id": {
      "type": "string",
      "format": "uuid",
      "description": "Workspace ID"
    }
  },
  "required": [
    "results",
    "workspace_id"
  ],
  "$defs": {
    "EmailTemplate": {
      "type": "object",
      "description": "Custom email template for signing request notifications",
      "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"
      ]
    }
  }
}