{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-list-message-templates-response-schema.json",
  "title": "ListMessageTemplatesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-messagetemplates-api-openapi.yml#/components/schemas/ListMessageTemplatesResponse",
  "type": "object",
  "properties": {
    "messageTemplateSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MessageTemplateSummary"
      },
      "description": "Summary information about the message template."
    },
    "nextToken": {
      "type": "string",
      "description": "If there are additional results, this is the token for the next set of results."
    }
  },
  "required": [
    "messageTemplateSummaries"
  ],
  "$defs": {
    "MessageTemplateSourceConfiguration": {
      "type": "object",
      "properties": {
        "whatsApp": {
          "$ref": "#/$defs/WhatsAppMessageTemplateSourceConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "MessageTemplateSummary": {
      "type": "object",
      "properties": {
        "messageTemplateArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the message template."
        },
        "messageTemplateId": {
          "type": "string",
          "description": "The identifier of the message template."
        },
        "knowledgeBaseArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the knowledge base."
        },
        "knowledgeBaseId": {
          "type": "string",
          "description": "The identifier of the knowledge base."
        },
        "name": {
          "type": "string",
          "description": "The name of the message template."
        },
        "channel": {
          "type": "string",
          "description": "The channel this message template applies to."
        },
        "channelSubtype": {
          "type": "string",
          "description": "The channel subtype this message template applies to."
        },
        "createdTime": {
          "type": "string",
          "description": "The timestamp when the message template was created."
        },
        "lastModifiedTime": {
          "type": "string",
          "description": "The timestamp when the message template data was last modified."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the user who last updated the message template data."
        },
        "sourceConfiguration": {
          "$ref": "#/$defs/MessageTemplateSourceConfiguration"
        },
        "activeVersionNumber": {
          "type": "integer",
          "description": "The version number of the message template version that is activated."
        },
        "description": {
          "type": "string",
          "description": "The description of the message template."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags used to organize, track, or control access for this resource."
        }
      },
      "required": [
        "messageTemplateArn",
        "messageTemplateId",
        "knowledgeBaseArn",
        "knowledgeBaseId",
        "name",
        "channelSubtype",
        "createdTime",
        "lastModifiedTime",
        "lastModifiedBy"
      ]
    },
    "WhatsAppMessageTemplateSourceConfiguration": {
      "type": "object",
      "properties": {
        "businessAccountId": {
          "type": "string",
          "description": "The ID of the End User Messaging WhatsApp Business Account to associate with this template."
        },
        "templateId": {
          "type": "string",
          "description": "The WhatsApp template ID."
        },
        "components": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of component mapping from WhatsApp template parameters to Message Template attributes."
        }
      },
      "required": [
        "businessAccountId",
        "templateId"
      ]
    }
  }
}