---
title: "GET /instance/{InstanceId}/bots#lexVersion"
method: GET
path: "/instance/{InstanceId}/bots#lexVersion"
---

# GET /instance/{InstanceId}/bots#lexVersion

`GET /instance/{InstanceId}/bots#lexVersion`

This API is in preview release for Amazon Connect and is subject to change.

For the specified version of Amazon Lex, returns a paginated list of all the Amazon Lex bots currently associated with the instance. Use this API to returns both Amazon Lex V1 and V2 bots.

## Path parameters

- `InstanceId` string, required

## Query parameters

- `nextToken` string
- `maxResults` integer
- `lexVersion` 'V1' | 'V2', required
- `MaxResults` string
- `NextToken` string

## Response `200`

Success

- ListBotsResponse
  - `LexBots` LexBotConfig[] — The names and Amazon Web Services Regions of the Amazon Lex or Amazon Lex V2 bots associated with the specified instance.
    - `LexBot` LexBot — Configuration information of an Amazon Lex bot.
      - `Name` string, required — The name of the Amazon Lex bot.
      - `LexRegion` string, required — The Amazon Web Services Region where the Amazon Lex bot was created.
    - `LexV2Bot` object — Configuration information of an Amazon Lex V2 bot.
      - `AliasArn` string — The Amazon Resource Name (ARN) of the Amazon Lex V2 bot.
  - `NextToken` string — If there are additional results, this is the token for the next set of results.

## Other responses

- `480` — ResourceNotFoundException
- `481` — InternalServiceException
- `482` — InvalidRequestException
- `483` — ThrottlingException

---

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