Amazon Lex Lex Aliases API

The Lex Aliases API from Amazon Lex — 2 operation(s) for lex aliases.

GitHub OpenAPI

Operations 4

DELETE /bots/{botName}/aliases/{name} Delete Bot Alias #
GET /bots/{botName}/aliases/{name} Get Bot Alias #
PUT /bots/{botName}/aliases/{name} Put Bot Alias #
GET /bots/{botName}/aliases Get Bot Aliases #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-lex:amazon-lex-aliases-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-lex-aliases-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lex Model Building V2 Aliases API
  version: '2020-08-07'
  description: Generated from AWS's published Smithy model for Amazon Lex Model Building V2. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://models.lex.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /bots/{botName}/aliases/{name}:
    delete:
      operationId: DeleteBotAlias
      summary: Delete Bot Alias
      description: Deletes an alias for the specified bot. You can't delete an alias that is used in the association between
        a bot and a messaging channel. If an alias is used in a channel association, the DeleteBot operation returns a ResourceInUseException
        exception that includes a reference to the channel association that refers to the bot. You can remove the reference
        to the alias by deleting the channel association. If you get the same exception again, delete the referring association
        until the DeleteBotAlias operation is successful.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '400':
          description: BadRequestException; ResourceInUseException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
      deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ModelsLexDeleteBotAliasRequest'
      tags:
      - Aliases
    get:
      operationId: GetBotAlias
      summary: Get Bot Alias
      description: Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.
        This operation requires permissions for the lex:GetBotAlias action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBotAliasResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
      deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetBotAliasRequest'
      tags:
      - Aliases
    put:
      operationId: PutBotAlias
      summary: Put Bot Alias
      description: Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change
        the version of the bot that the alias points to, replace the alias. For more information about aliases, see versioning-aliases.
        This operation requires permissions for the lex:PutBotAlias action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutBotAliasResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '412':
          description: PreconditionFailedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreconditionFailedException'
      deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutBotAliasRequest'
      tags:
      - Aliases
  /bots/{botName}/aliases:
    get:
      operationId: GetBotAliases
      summary: Get Bot Aliases
      description: Returns a list of aliases for a specified Amazon Lex bot. This operation requires permissions for the lex:GetBotAliases
        action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBotAliasesResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
      deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetBotAliasesRequest'
      tags:
      - Aliases
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: lex
  schemas:
    BadRequestException:
      type: object
      properties:
        message:
          type: string
    BotAliasMetadata:
      type: object
      properties:
        name:
          type: string
          description: The name of the bot alias.
        description:
          type: string
          description: A description of the bot alias.
        botVersion:
          type: string
          description: The version of the Amazon Lex bot to which the alias points.
        botName:
          type: string
          description: The name of the bot to which the alias points.
        lastUpdatedDate:
          type: string
          format: date-time
          description: The date that the bot alias was updated. When you create a resource, the creation date and last updated
            date are the same.
        createdDate:
          type: string
          format: date-time
          description: The date that the bot alias was created.
        checksum:
          type: string
          description: Checksum of the bot alias.
        conversationLogs:
          $ref: '#/components/schemas/ConversationLogsResponse'
    ConflictException:
      type: object
      properties:
        message:
          type: string
    ConversationLogsRequest:
      type: object
      properties:
        logSettings:
          type: array
          items:
            $ref: '#/components/schemas/LogSettingsRequest'
          description: The settings for your conversation logs. You can log the conversation text, conversation audio, or
            both.
        iamRoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of an IAM role with permission to write to your CloudWatch Logs for
            text logs and your S3 bucket for audio logs. If audio encryption is enabled, this role also provides access permission
            for the AWS KMS key used for encrypting audio logs. For more information, see Creating an IAM Role and Policy
            for Conversation Logs.
      required:
      - logSettings
      - iamRoleArn
    ConversationLogsResponse:
      type: object
      properties:
        logSettings:
          type: array
          items:
            $ref: '#/components/schemas/LogSettingsResponse'
          description: The settings for your conversation logs. You can log text, audio, or both.
        iamRoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3
            bucket.
    GetBotAliasRequest:
      type: object
      properties:
        name:
          type: string
          description: The name of the bot alias. The name is case sensitive.
        botName:
          type: string
          description: The name of the bot.
      required:
      - name
      - botName
    GetBotAliasResponse:
      type: object
      properties:
        name:
          type: string
          description: The name of the bot alias.
        description:
          type: string
          description: A description of the bot alias.
        botVersion:
          type: string
          description: The version of the bot that the alias points to.
        botName:
          type: string
          description: The name of the bot that the alias points to.
        lastUpdatedDate:
          type: string
          format: date-time
          description: The date that the bot alias was updated. When you create a resource, the creation date and the last
            updated date are the same.
        createdDate:
          type: string
          format: date-time
          description: The date that the bot alias was created.
        checksum:
          type: string
          description: Checksum of the bot alias.
        conversationLogs:
          $ref: '#/components/schemas/ConversationLogsResponse'
    GetBotAliasesRequest:
      type: object
      properties:
        botName:
          type: string
          description: The name of the bot.
        nextToken:
          type: string
          description: A pagination token for fetching the next page of aliases. If the response to this call is truncated,
            Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination
            token in the next request.
        maxResults:
          type: integer
          description: The maximum number of aliases to return in the response. The default is 50. .
        nameContains:
          type: string
          description: Substring to match in bot alias names. An alias will be returned if any part of its name matches the
            substring. For example, "xyz" matches both "xyzabc" and "abcxyz."
      required:
      - botName
    GetBotAliasesResponse:
      type: object
      properties:
        BotAliases:
          type: array
          items:
            $ref: '#/components/schemas/BotAliasMetadata'
          description: An array of BotAliasMetadata objects, each describing a bot alias.
        nextToken:
          type: string
          description: A pagination token for fetching next page of aliases. If the response to this call is truncated, Amazon
            Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token
            in the next request.
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
    LimitExceededException:
      type: object
      properties:
        retryAfterSeconds:
          type: string
        message:
          type: string
    LogSettingsRequest:
      type: object
      properties:
        logType:
          type: string
          enum:
          - AUDIO
          - TEXT
          description: The type of logging to enable. Text logs are delivered to a CloudWatch Logs log group. Audio logs are
            delivered to an S3 bucket.
        destination:
          type: string
          enum:
          - CLOUDWATCH_LOGS
          - S3
          description: Where the logs will be delivered. Text logs are delivered to a CloudWatch Logs log group. Audio logs
            are delivered to an S3 bucket.
        kmsKeyArn:
          type: string
          description: The Amazon Resource Name (ARN) of the AWS KMS customer managed key for encrypting audio logs delivered
            to an S3 bucket. The key does not apply to CloudWatch Logs and is optional for S3 buckets.
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs should
            be delivered.
      required:
      - logType
      - destination
      - resourceArn
    LogSettingsResponse:
      type: object
      properties:
        logType:
          type: string
          enum:
          - AUDIO
          - TEXT
          description: The type of logging that is enabled.
        destination:
          type: string
          enum:
          - CLOUDWATCH_LOGS
          - S3
          description: The destination where logs are delivered.
        kmsKeyArn:
          type: string
          description: The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket.
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered.
        resourcePrefix:
          type: string
          description: The resource prefix is the first part of the S3 object key within the S3 bucket that you specified
            to contain audio logs. For CloudWatch Logs it is the prefix of the log stream name within the log group that you
            specified.
    ModelsLexDeleteBotAliasRequest:
      type: object
      properties:
        name:
          type: string
          description: The name of the alias to delete. The name is case sensitive.
        botName:
          type: string
          description: The name of the bot that the alias points to.
      required:
      - name
      - botName
    NotFoundException:
      type: object
      properties:
        message:
          type: string
    PreconditionFailedException:
      type: object
      properties:
        message:
          type: string
    PutBotAliasRequest:
      type: object
      properties:
        name:
          type: string
          description: The name of the alias. The name is not case sensitive.
        description:
          type: string
          description: A description of the alias.
        botVersion:
          type: string
          description: The version of the bot.
        botName:
          type: string
          description: The name of the bot.
        checksum:
          type: string
          description: Identifies a specific revision of the $LATEST version. When you create a new bot alias, leave the checksum
            field blank. If you specify a checksum you get a BadRequestException exception. When you want to update a bot
            alias, set the checksum field to the checksum of the most recent revision of the $LATEST version. If you don't
            specify the checksum field, or if the checksum does not match the $LATEST version, you get a PreconditionFailedException
            exception.
        conversationLogs:
          $ref: '#/components/schemas/ConversationLogsRequest'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A list of tags to add to the bot alias. You can only add tags when you create an alias, you can't use
            the PutBotAlias operation to update the tags on a bot alias. To update tags, use the TagResource operation.
      required:
      - name
      - botVersion
      - botName
    PutBotAliasResponse:
      type: object
      properties:
        name:
          type: string
          description: The name of the alias.
        description:
          type: string
          description: A description of the alias.
        botVersion:
          type: string
          description: The version of the bot that the alias points to.
        botName:
          type: string
          description: The name of the bot that the alias points to.
        lastUpdatedDate:
          type: string
          format: date-time
          description: The date that the bot alias was updated. When you create a resource, the creation date and the last
            updated date are the same.
        createdDate:
          type: string
          format: date-time
          description: The date that the bot alias was created.
        checksum:
          type: string
          description: The checksum for the current version of the alias.
        conversationLogs:
          $ref: '#/components/schemas/ConversationLogsResponse'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A list of tags associated with a bot.
    Tag:
      type: object
      properties:
        key:
          type: string
          description: The key for the tag. Keys are not case-sensitive and must be unique.
        value:
          type: string
          description: The value associated with a key. The value may be an empty string but it can't be null.
      required:
      - key
      - value
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/lex-model-building-service/service/2017-04-19/lex-model-building-service-2017-04-19.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)