---
title: "GET /knowledgeBases/{knowledgeBaseId}/messageTemplates"
method: GET
path: "/knowledgeBases/{knowledgeBaseId}/messageTemplates"
---

# GET /knowledgeBases/{knowledgeBaseId}/messageTemplates

`GET /knowledgeBases/{knowledgeBaseId}/messageTemplates`

Lists all the available Amazon Q in Connect message templates for the specified knowledge base.

## Path parameters

- `knowledgeBaseId` string, required

## Query parameters

- `nextToken` string
- `maxResults` integer

## Response `200`

Success

- ListMessageTemplatesResponse
  - `messageTemplateSummaries` MessageTemplateSummary[], required — Summary information about the message template.
    - `messageTemplateArn` string, required — The Amazon Resource Name (ARN) of the message template.
    - `messageTemplateId` string, required — The identifier of the message template.
    - `knowledgeBaseArn` string, required — The Amazon Resource Name (ARN) of the knowledge base.
    - `knowledgeBaseId` string, required — The identifier of the knowledge base.
    - `name` string, required — The name of the message template.
    - `channel` string, password — The channel this message template applies to.
    - `channelSubtype` 'EMAIL' | 'SMS' | 'WHATSAPP' | 'PUSH', required — The channel subtype this message template applies to.
    - `createdTime` string, date-time, required — The timestamp when the message template was created.
    - `lastModifiedTime` string, date-time, required — The timestamp when the message template data was last modified.
    - `lastModifiedBy` string, required — The Amazon Resource Name (ARN) of the user who last updated the message template data.
    - `sourceConfiguration` MessageTemplateSourceConfiguration — The container of message template source configuration.
      - `whatsApp` object — The sourceConfiguration of the message template that applies to the WHATSAPP channel subtype.
        - `businessAccountId` string, required — The ID of the End User Messaging WhatsApp Business Account to associate with this template.
        - `templateId` string, required — The WhatsApp template ID.
        - `components` WhatsAppMessageTemplateComponent[] — The list of component mapping from WhatsApp template parameters to Message Template attributes.
    - `activeVersionNumber` integer — The version number of the message template version that is activated.
    - `description` string — The description of the message template.
    - `tags` object — The tags used to organize, track, or control access for this resource.
  - `nextToken` string — If there are additional results, this is the token for the next set of results.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/qconnect.md) · [All operations](https://skmtc.net/aws/apis/qconnect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/qconnect/versions/833f5de92023/schema)
