Amazon Lex Lex Migrations API

The Lex Migrations API from Amazon Lex — 2 operation(s) for lex migrations.

GitHub OpenAPI

Operations 3

GET /migrations/{migrationId} Get Migration #
GET /migrations Get Migrations #
POST /migrations Start Migration #

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-migrations-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-migrations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lex Model Building V2 Migrations API
  version: '2020-08-07'
  description: Generated from AWS's published Smithy model for Amazon Lex Model Building V2. 3 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:
  /migrations/{migrationId}:
    get:
      operationId: GetMigration
      summary: Get Migration
      description: Provides details about an ongoing or complete migration from an Amazon Lex V1 bot to an Amazon Lex V2 bot.
        Use this operation to view the migration alerts and warnings related to the migration.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMigrationResponse'
        '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/GetMigrationRequest'
      tags:
      - Migrations
  /migrations:
    get:
      operationId: GetMigrations
      summary: Get Migrations
      description: Gets a list of migrations between Amazon Lex V1 and Amazon Lex V2.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMigrationsResponse'
        '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/GetMigrationsRequest'
      tags:
      - Migrations
    post:
      operationId: StartMigration
      summary: Start Migration
      description: Starts migrating a bot from Amazon Lex V1 to Amazon Lex V2. Migrate your bot when you want to take advantage
        of the new features of Amazon Lex V2. For more information, see Migrating a bot in the Amazon Lex developer guide.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartMigrationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsLexAccessDeniedException'
        '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/StartMigrationRequest'
      tags:
      - Migrations
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
    GetMigrationRequest:
      type: object
      properties:
        migrationId:
          type: string
          description: The unique identifier of the migration to view. The migrationID is returned by the operation.
      required:
      - migrationId
    GetMigrationResponse:
      type: object
      properties:
        migrationId:
          type: string
          description: The unique identifier of the migration. This is the same as the identifier used when calling the GetMigration
            operation.
        v1BotName:
          type: string
          description: The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
        v1BotVersion:
          type: string
          description: The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
        v1BotLocale:
          type: string
          enum:
          - de-DE
          - en-AU
          - en-GB
          - en-IN
          - en-US
          - es-419
          - es-ES
          - es-US
          - fr-FR
          - fr-CA
          - it-IT
          - ja-JP
          - ko-KR
          description: The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
        v2BotId:
          type: string
          description: The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
        v2BotRole:
          type: string
          description: The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
        migrationStatus:
          type: string
          enum:
          - IN_PROGRESS
          - COMPLETED
          - FAILED
          description: Indicates the status of the migration. When the status is COMPLETE the migration is finished and the
            bot is available in Amazon Lex V2. There may be alerts and warnings that need to be resolved to complete the migration.
        migrationStrategy:
          type: string
          enum:
          - CREATE_NEW
          - UPDATE_EXISTING
          description: The strategy used to conduct the migration. CREATE_NEW - Creates a new Amazon Lex V2 bot and migrates
            the Amazon Lex V1 bot to the new bot. UPDATE_EXISTING - Overwrites the existing Amazon Lex V2 bot metadata and
            the locale being migrated. It doesn't change any other locales in the Amazon Lex V2 bot. If the locale doesn't
            exist, a new locale is created in the Amazon Lex V2 bot.
        migrationTimestamp:
          type: string
          format: date-time
          description: The date and time that the migration started.
        alerts:
          type: array
          items:
            $ref: '#/components/schemas/MigrationAlert'
          description: A list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to
            Amazon Lex V2. You receive a warning when an Amazon Lex V1 feature has a different implementation if Amazon Lex
            V2. For more information, see Migrating a bot in the Amazon Lex V2 developer guide.
    GetMigrationsRequest:
      type: object
      properties:
        sortByAttribute:
          type: string
          enum:
          - V1_BOT_NAME
          - MIGRATION_DATE_TIME
          description: The field to sort the list of migrations by. You can sort by the Amazon Lex V1 bot name or the date
            and time that the migration was started.
        sortByOrder:
          type: string
          enum:
          - ASCENDING
          - DESCENDING
          description: The order so sort the list.
        v1BotNameContains:
          type: string
          description: Filters the list to contain only bots whose name contains the specified string. The string is matched
            anywhere in bot name.
        migrationStatusEquals:
          type: string
          enum:
          - IN_PROGRESS
          - COMPLETED
          - FAILED
          description: Filters the list to contain only migrations in the specified state.
        maxResults:
          type: integer
          description: The maximum number of migrations to return in the response. The default is 10.
        nextToken:
          type: string
          description: A pagination token that fetches the next page of migrations. If the response to this operation is truncated,
            Amazon Lex returns a pagination token in the response. To fetch the next page of migrations, specify the pagination
            token in the request.
    GetMigrationsResponse:
      type: object
      properties:
        migrationSummaries:
          type: array
          items:
            $ref: '#/components/schemas/MigrationSummary'
          description: An array of summaries for migrations from Amazon Lex V1 to Amazon Lex V2. To see details of the migration,
            use the migrationId from the summary in a call to the operation.
        nextToken:
          type: string
          description: If the response is truncated, it includes a pagination token that you can specify in your next request
            to fetch the next page of migrations.
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
    LimitExceededException:
      type: object
      properties:
        retryAfterSeconds:
          type: string
        message:
          type: string
    MigrationAlert:
      type: object
      properties:
        type:
          type: string
          enum:
          - ERROR
          - WARN
          description: 'The type of alert. There are two kinds of alerts: ERROR - There was an issue with the migration that
            can''t be resolved. The migration stops. WARN - There was an issue with the migration that requires manual changes
            to the new Amazon Lex V2 bot. The migration continues.'
        message:
          type: string
          description: A message that describes why the alert was issued.
        details:
          type: array
          items:
            type: string
          description: Additional details about the alert.
        referenceURLs:
          type: array
          items:
            type: string
          description: A link to the Amazon Lex documentation that describes how to resolve the alert.
    MigrationSummary:
      type: object
      properties:
        migrationId:
          type: string
          description: The unique identifier that Amazon Lex assigned to the migration.
        v1BotName:
          type: string
          description: The name of the Amazon Lex V1 bot that is the source of the migration.
        v1BotVersion:
          type: string
          description: The version of the Amazon Lex V1 bot that is the source of the migration.
        v1BotLocale:
          type: string
          enum:
          - de-DE
          - en-AU
          - en-GB
          - en-IN
          - en-US
          - es-419
          - es-ES
          - es-US
          - fr-FR
          - fr-CA
          - it-IT
          - ja-JP
          - ko-KR
          description: The locale of the Amazon Lex V1 bot that is the source of the migration.
        v2BotId:
          type: string
          description: The unique identifier of the Amazon Lex V2 that is the destination of the migration.
        v2BotRole:
          type: string
          description: The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
        migrationStatus:
          type: string
          enum:
          - IN_PROGRESS
          - COMPLETED
          - FAILED
          description: The status of the operation. When the status is COMPLETE the bot is available in Amazon Lex V2. There
            may be alerts and warnings that need to be resolved to complete the migration.
        migrationStrategy:
          type: string
          enum:
          - CREATE_NEW
          - UPDATE_EXISTING
          description: The strategy used to conduct the migration.
        migrationTimestamp:
          type: string
          format: date-time
          description: The date and time that the migration started.
    ModelsLexAccessDeniedException:
      type: object
      properties:
        message:
          type: string
    NotFoundException:
      type: object
      properties:
        message:
          type: string
    StartMigrationRequest:
      type: object
      properties:
        v1BotName:
          type: string
          description: The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.
        v1BotVersion:
          type: string
          description: The version of the bot to migrate to Amazon Lex V2. You can migrate the $LATEST version as well as
            any numbered version.
        v2BotName:
          type: string
          description: The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to. If the Amazon Lex
            V2 bot doesn't exist, you must use the CREATE_NEW migration strategy. If the Amazon Lex V2 bot exists, you must
            use the UPDATE_EXISTING migration strategy to change the contents of the Amazon Lex V2 bot.
        v2BotRole:
          type: string
          description: The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
        migrationStrategy:
          type: string
          enum:
          - CREATE_NEW
          - UPDATE_EXISTING
          description: The strategy used to conduct the migration. CREATE_NEW - Creates a new Amazon Lex V2 bot and migrates
            the Amazon Lex V1 bot to the new bot. UPDATE_EXISTING - Overwrites the existing Amazon Lex V2 bot metadata and
            the locale being migrated. It doesn't change any other locales in the Amazon Lex V2 bot. If the locale doesn't
            exist, a new locale is created in the Amazon Lex V2 bot.
      required:
      - v1BotName
      - v1BotVersion
      - v2BotName
      - v2BotRole
      - migrationStrategy
    StartMigrationResponse:
      type: object
      properties:
        v1BotName:
          type: string
          description: The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.
        v1BotVersion:
          type: string
          description: The version of the bot to migrate to Amazon Lex V2.
        v1BotLocale:
          type: string
          enum:
          - de-DE
          - en-AU
          - en-GB
          - en-IN
          - en-US
          - es-419
          - es-ES
          - es-US
          - fr-FR
          - fr-CA
          - it-IT
          - ja-JP
          - ko-KR
          description: The locale used for the Amazon Lex V1 bot.
        v2BotId:
          type: string
          description: The unique identifier for the Amazon Lex V2 bot.
        v2BotRole:
          type: string
          description: The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
        migrationId:
          type: string
          description: The unique identifier that Amazon Lex assigned to the migration.
        migrationStrategy:
          type: string
          enum:
          - CREATE_NEW
          - UPDATE_EXISTING
          description: The strategy used to conduct the migration.
        migrationTimestamp:
          type: string
          format: date-time
          description: The date and time that the migration started.
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)