Amazon Bedrock Bedrock Agentaliases API

The Bedrock Agentaliases API from Amazon Bedrock — 2 operation(s) for bedrock agentaliases.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /agents/{agentId}/agentaliases/ Create an alias for an agent · Create Agent Alias #
Ask an LLM
“How do I create a named alias for an agent so I can deploy it?”
“Can I set a routing configuration when creating an agent alias?”
Tell an agent
Create alias {agentAliasName} for agent {agentId}.
Create alias {agentAliasName} for agent {agentId} with routing {routingConfiguration}.
POST /agents/{agentId}/agentaliases/ List an agent's aliases · List Agent Aliases #
Ask an LLM
“Which aliases exist for my agent?”
“Can I page through an agent's aliases?”
Tell an agent
List aliases of agent {agentId}.
Show {maxResults} aliases of agent {agentId}.
DELETE /agents/{agentId}/agentaliases/{agentAliasId}/ Delete an agent alias · Delete Agent Alias #
Ask an LLM
“How do I delete an alias from an agent?”
“Can I remove an agent alias I no longer use?”
Tell an agent destructive · confirm first
Delete alias {agentAliasId} from agent {agentId}.
Remove agent alias {agentAliasId} of {agentId}.
GET /agents/{agentId}/agentaliases/{agentAliasId}/ Get an agent alias · Get Agent Alias #
Ask an LLM
“What routing configuration does a particular agent alias have?”
“Can I look up one agent alias by its ID?”
Tell an agent
Get alias {agentAliasId} of agent {agentId}.
Show the routing configuration of alias {agentAliasId} for agent {agentId}.
PUT /agents/{agentId}/agentaliases/{agentAliasId}/ Update an agent alias · Update Agent Alias #
Ask an LLM
“How do I rename an existing agent alias?”
“Can I pause an agent alias by changing its invocation state?”
Tell an agent
Rename alias {agentAliasId} of agent {agentId} to {agentAliasName}.
Set the invocation state of alias {agentAliasId} for agent {agentId} to {aliasInvocationState}.

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-bedrock:amazon-bedrock-agentaliases-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-bedrock-agentaliases-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Agentaliases API
  version: '2023-04-20'
  description: Generated from AWS's published Smithy model for Amazon Bedrock. 5 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://bedrock-agent.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /agents/{agentId}/agentaliases/:
    put:
      operationId: CreateAgentAlias
      summary: Create Agent Alias
      description: Creates an alias of an agent that can be used to deploy the agent.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAgentAliasResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentValidationException'
      parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the agent.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                agentAliasName:
                  type: string
                  description: The name of the alias.
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure that the API request completes no more than one
                    time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return
                    an error. For more information, see Ensuring idempotency.
                description:
                  type: string
                  description: A description of the alias of the agent.
                routingConfiguration:
                  type: array
                  items:
                    $ref: '#/components/schemas/AgentAliasRoutingConfigurationListItem'
                  description: Contains details about the routing configuration of the alias.
                tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: Any tags that you want to attach to the alias of the agent.
              required:
              - agentAliasName
      tags:
      - Agentaliases
    post:
      operationId: ListAgentAliases
      summary: List Agent Aliases
      description: Lists the aliases of an agent and information about each one.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAgentAliasesResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentValidationException'
      parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the agent.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                maxResults:
                  type: integer
                  description: The maximum number of results to return in the response. If the total number of results is
                    greater than this value, use the token returned in the response in the nextToken field when making another
                    request to return the next batch of results.
                nextToken:
                  type: string
                  description: If the total number of results is greater than the maxResults value provided in the request,
                    enter the token returned in the nextToken field in the response in this field to return the next batch
                    of results.
      tags:
      - Agentaliases
  /agents/{agentId}/agentaliases/{agentAliasId}/:
    delete:
      operationId: DeleteAgentAlias
      summary: Delete Agent Alias
      description: Deletes an alias of an agent.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAgentAliasResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentValidationException'
      parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the agent that the alias belongs to.
      - name: agentAliasId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the alias to delete.
      tags:
      - Agentaliases
    get:
      operationId: GetAgentAlias
      summary: Get Agent Alias
      description: Gets information about an alias of an agent.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAgentAliasResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentValidationException'
      parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the agent to which the alias to get information belongs.
      - name: agentAliasId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the alias for which to get information.
      tags:
      - Agentaliases
    put:
      operationId: UpdateAgentAlias
      summary: Update Agent Alias
      description: Updates configurations for an alias of an agent.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateAgentAliasResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentValidationException'
      parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the agent.
      - name: agentAliasId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the alias.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                agentAliasName:
                  type: string
                  description: Specifies a new name for the alias.
                description:
                  type: string
                  description: Specifies a new description for the alias.
                routingConfiguration:
                  type: array
                  items:
                    $ref: '#/components/schemas/AgentAliasRoutingConfigurationListItem'
                  description: Contains details about the routing configuration of the alias.
                aliasInvocationState:
                  type: string
                  enum:
                  - ACCEPT_INVOCATIONS
                  - REJECT_INVOCATIONS
                  description: The invocation state for the agent alias. To pause the agent alias, set the value to REJECT_INVOCATIONS.
                    To start the agent alias running again, set the value to ACCEPT_INVOCATIONS. Use the GetAgentAlias, or
                    ListAgentAliases, operation to get the invocation state of an agent alias.
              required:
              - agentAliasName
      tags:
      - Agentaliases
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: bedrock
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
    AgentAlias:
      type: object
      properties:
        agentId:
          type: string
          description: The unique identifier of the agent.
        agentAliasId:
          type: string
          description: The unique identifier of the alias of the agent.
        agentAliasName:
          type: string
          description: The name of the alias of the agent.
        agentAliasArn:
          type: string
          description: The Amazon Resource Name (ARN) of the alias of the agent.
        clientToken:
          type: string
          description: A unique, case-sensitive identifier to ensure that the API request completes no more than one time.
            If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For
            more information, see Ensuring idempotency.
        description:
          type: string
          description: The description of the alias of the agent.
        routingConfiguration:
          type: array
          items:
            $ref: '#/components/schemas/AgentAliasRoutingConfigurationListItem'
          description: Contains details about the routing configuration of the alias.
        createdAt:
          type: string
          format: date-time
          description: The time at which the alias of the agent was created.
        updatedAt:
          type: string
          format: date-time
          description: The time at which the alias was last updated.
        agentAliasHistoryEvents:
          type: array
          items:
            $ref: '#/components/schemas/AgentAliasHistoryEvent'
          description: Contains details about the history of the alias.
        agentAliasStatus:
          type: string
          enum:
          - CREATING
          - PREPARED
          - FAILED
          - UPDATING
          - DELETING
          - DISSOCIATED
          description: 'The status of the alias of the agent and whether it is ready for use. The following statuses are possible:
            CREATING – The agent alias is being created. PREPARED – The agent alias is finished being created or updated and
            is ready to be invoked. FAILED – The agent alias API operation failed. UPDATING – The agent alias is being updated.
            DELETING – The agent alias is being deleted. DISSOCIATED - The agent alias has no version associated with it.'
        failureReasons:
          type: array
          items:
            type: string
          description: Information on the failure of Provisioned Throughput assigned to an agent alias.
        aliasInvocationState:
          type: string
          enum:
          - ACCEPT_INVOCATIONS
          - REJECT_INVOCATIONS
          description: The invocation state for the agent alias. If the agent alias is running, the value is ACCEPT_INVOCATIONS.
            If the agent alias is paused, the value is REJECT_INVOCATIONS. Use the UpdateAgentAlias operation to change the
            invocation state.
      required:
      - agentId
      - agentAliasId
      - agentAliasName
      - agentAliasArn
      - routingConfiguration
      - createdAt
      - updatedAt
      - agentAliasStatus
    AgentAliasHistoryEvent:
      type: object
      properties:
        routingConfiguration:
          type: array
          items:
            $ref: '#/components/schemas/AgentAliasRoutingConfigurationListItem'
          description: Contains details about the version of the agent with which the alias is associated.
        endDate:
          type: string
          format: date-time
          description: The date that the alias stopped being associated to the version in the routingConfiguration object
        startDate:
          type: string
          format: date-time
          description: The date that the alias began being associated to the version in the routingConfiguration object.
    AgentAliasRoutingConfigurationListItem:
      type: object
      properties:
        agentVersion:
          type: string
          description: The version of the agent with which the alias is associated.
        provisionedThroughput:
          type: string
          description: Information on the Provisioned Throughput assigned to an agent alias.
    AgentAliasSummary:
      type: object
      properties:
        agentAliasId:
          type: string
          description: Contains details about
        agentAliasName:
          type: string
          description: The name of the alias.
        description:
          type: string
          description: The description of the alias.
        routingConfiguration:
          type: array
          items:
            $ref: '#/components/schemas/AgentAliasRoutingConfigurationListItem'
          description: Contains details about the version of the agent with which the alias is associated.
        agentAliasStatus:
          type: string
          enum:
          - CREATING
          - PREPARED
          - FAILED
          - UPDATING
          - DELETING
          - DISSOCIATED
          description: The status of the alias.
        createdAt:
          type: string
          format: date-time
          description: The time at which the alias of the agent was created.
        updatedAt:
          type: string
          format: date-time
          description: The time at which the alias was last updated.
        aliasInvocationState:
          type: string
          enum:
          - ACCEPT_INVOCATIONS
          - REJECT_INVOCATIONS
          description: The invocation state for the agent alias. If the agent alias is running, the value is ACCEPT_INVOCATIONS.
            If the agent alias is paused, the value is REJECT_INVOCATIONS. Use the UpdateAgentAlias operation to change the
            invocation state.
      required:
      - agentAliasId
      - agentAliasName
      - agentAliasStatus
      - createdAt
      - updatedAt
    BedrockAgentValidationException:
      type: object
      properties:
        message:
          type: string
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: A list of objects containing fields that caused validation errors and their corresponding validation
            error messages.
    ConflictException:
      type: object
      properties:
        message:
          type: string
    CreateAgentAliasResponse:
      type: object
      properties:
        agentAlias:
          $ref: '#/components/schemas/AgentAlias'
      required:
      - agentAlias
    DeleteAgentAliasResponse:
      type: object
      properties:
        agentId:
          type: string
          description: The unique identifier of the agent that the alias belongs to.
        agentAliasId:
          type: string
          description: The unique identifier of the alias that was deleted.
        agentAliasStatus:
          type: string
          enum:
          - CREATING
          - PREPARED
          - FAILED
          - UPDATING
          - DELETING
          - DISSOCIATED
          description: The status of the alias.
      required:
      - agentId
      - agentAliasId
      - agentAliasStatus
    GetAgentAliasResponse:
      type: object
      properties:
        agentAlias:
          $ref: '#/components/schemas/AgentAlias'
      required:
      - agentAlias
    InternalServerException:
      type: object
      properties:
        message:
          type: string
    ListAgentAliasesResponse:
      type: object
      properties:
        agentAliasSummaries:
          type: array
          items:
            $ref: '#/components/schemas/AgentAliasSummary'
          description: A list of objects, each of which contains information about an alias of the agent.
        nextToken:
          type: string
          description: If the total number of results is greater than the maxResults value provided in the request, use this
            token when making another request in the nextToken field to return the next batch of results.
      required:
      - agentAliasSummaries
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
    UpdateAgentAliasResponse:
      type: object
      properties:
        agentAlias:
          $ref: '#/components/schemas/AgentAlias'
      required:
      - agentAlias
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The name of the field.
        message:
          type: string
          description: A message describing why this field failed validation.
      required:
      - name
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/bedrock-agent/service/2023-06-05/bedrock-agent-2023-06-05.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)