{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/100hires-com/json-schema/100hires-com-email-template-list-response-schema.json",
  "title": "EmailTemplateListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/100hires-com-email-templates-api-openapi.yml#/components/schemas/EmailTemplateListResponse",
  "type": "object",
  "required": [
    "email_templates",
    "pagination"
  ],
  "properties": {
    "email_templates": {
      "type": "array",
      "description": "Array of email templates.",
      "items": {
        "$ref": "#/$defs/EmailTemplate"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "$defs": {
    "EmailTemplate": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Email template ID"
        },
        "name": {
          "type": "string",
          "description": "Template name"
        },
        "subject": {
          "type": "string",
          "description": "Email subject line as stored. Placeholders, when present, are stored as `<tag>` HTML produced by `POST /template-placeholders/prepare`; they are rendered to real values only at send time, not on read.\n"
        },
        "body": {
          "type": "string",
          "description": "Email body HTML as stored. Placeholders are stored as `<tag>` HTML produced by `POST /template-placeholders/prepare` and rendered at send time. Present only when `view=full` (default); omitted entirely when `view=summary` — template bodies can be tens of KB each.\n"
        },
        "url_backoffice": {
          "type": "string",
          "format": "uri",
          "description": "Absolute backoffice URL to edit this email template in the 100Hires recruiter app. Use to render deep-links in agent UIs."
        },
        "created_at": {
          "type": "integer",
          "description": "Unix timestamp"
        },
        "updated_at": {
          "type": "integer",
          "description": "Unix timestamp"
        }
      }
    },
    "Pagination": {
      "type": "object",
      "required": [
        "page_size",
        "page_count",
        "page",
        "total_count"
      ],
      "properties": {
        "page_size": {
          "type": "integer",
          "description": "Items per page."
        },
        "page_count": {
          "type": "integer",
          "description": "Total number of pages."
        },
        "page": {
          "type": "integer",
          "description": "Current page number."
        },
        "total_count": {
          "type": "integer",
          "description": "Total number of items."
        }
      }
    }
  }
}