{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-list-templates-response-schema.json",
  "title": "ListTemplatesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-templates-api-openapi.yml#/components/schemas/ListTemplatesResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "type",
          "channel",
          "campaignType"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the template"
          },
          "type": {
            "type": "string",
            "description": "The type of message template",
            "enum": [
              "NUDGE_MESSAGE_1",
              "NUDGE_MESSAGE_2",
              "NUDGE_MESSAGE_3",
              "OPENING_MESSAGE",
              "RESTART_OPEN_MESSAGE",
              "WELCOME_MESSAGE"
            ]
          },
          "channel": {
            "type": "string",
            "description": "The channel through which the template will be sent",
            "enum": [
              "SMS",
              "WEB_CHAT",
              "WEB_CHAT_VIA_EMAIL",
              "WHATSAPP"
            ]
          },
          "campaignType": {
            "type": "string",
            "description": "The type of campaign this template is used for",
            "enum": [
              "APPLICANT_OUTREACH",
              "ENGAGEMENT_OUTREACH",
              "NEW_CANDIDATE_OUTREACH"
            ]
          }
        }
      }
    },
    "nextToken": {
      "type": "string",
      "description": "Pagination token for fetching the next page of results"
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}