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

# GET /knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions

`GET /knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions`

Lists all the available versions for the specified Amazon Q in Connect message template.

## Path parameters

- `knowledgeBaseId` string, required
- `messageTemplateId` string, required

## Query parameters

- `nextToken` string
- `maxResults` integer

## Response `200`

Success

- ListMessageTemplateVersionsResponse
  - `messageTemplateVersionSummaries` MessageTemplateVersionSummary[], required — Summary information about the versions of a 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 of the message template.
    - `channelSubtype` 'EMAIL' | 'SMS' | 'WHATSAPP' | 'PUSH', required — The channel subtype this message template applies to.
    - `isActive` boolean, required — Whether the version of the message template is activated.
    - `versionNumber` integer, required — The version number of the message template version.
  - `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/revisions/833f5de92023/schema)
