Amazon Bedrock Bedrock Agentversions API

The Bedrock Agentversions API from Amazon Bedrock — 2 operation(s) for bedrock agentversions.

GitHub OpenAPI

Operations 3

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

DELETE /agents/{agentId}/agentversions/{agentVersion}/ Delete an agent version · Delete Agent Version #
Ask an LLM
“How do I delete an old version of my agent?”
“Can I skip the in-use check when deleting an agent version?”
Tell an agent destructive · confirm first
Delete version {agentVersion} of agent {agentId}.
Delete agent {agentId} version {agentVersion} with skip in-use check {skip}.
GET /agents/{agentId}/agentversions/{agentVersion}/ Get an agent version · Get Agent Version #
Ask an LLM
“What are the details of a specific version of my agent?”
“Can I look up one agent version by its number?”
Tell an agent
Get version {agentVersion} of agent {agentId}.
Show the details of agent {agentId} version {agentVersion}.
POST /agents/{agentId}/agentversions/ List an agent's versions · List Agent Versions #
Ask an LLM
“Which versions exist for my agent?”
“Can I page through an agent's versions?”
Tell an agent
List the versions of agent {agentId}.
Show {max} versions of agent {agentId} starting from token {next}.

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-agentversions-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-agentversions-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Agentversions API
  version: '2023-04-20'
  description: Generated from AWS's published Smithy model for Amazon Bedrock. 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://bedrock-agent.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /agents/{agentId}/agentversions/{agentVersion}/:
    delete:
      operationId: DeleteAgentVersion
      summary: Delete Agent Version
      description: Deletes a version of an agent.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAgentVersionResponse'
        '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'
        '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 version belongs to.
      - name: agentVersion
        in: path
        required: true
        schema:
          type: string
        description: The version of the agent to delete.
      - name: skipResourceInUseCheck
        in: query
        schema:
          type: boolean
        description: By default, this value is false and deletion is stopped if the resource is in use. If you set it to true,
          the resource will be deleted even if the resource is in use.
      tags:
      - Agentversions
    get:
      operationId: GetAgentVersion
      summary: Get Agent Version
      description: Gets details about a version of an agent.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAgentVersionResponse'
        '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.
      - name: agentVersion
        in: path
        required: true
        schema:
          type: string
        description: The version of the agent.
      tags:
      - Agentversions
  /agents/{agentId}/agentversions/:
    post:
      operationId: ListAgentVersions
      summary: List Agent Versions
      description: Lists the versions of an agent and information about each version.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAgentVersionsResponse'
        '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:
      - Agentversions
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
    AgentVersion:
      type: object
      properties:
        agentId:
          type: string
          description: The unique identifier of the agent that the version belongs to.
        agentName:
          type: string
          description: The name of the agent that the version belongs to.
        agentArn:
          type: string
          description: The Amazon Resource Name (ARN) of the agent that the version belongs to.
        version:
          type: string
          description: The version number.
        instruction:
          type: string
          description: The instructions provided to the agent.
        agentStatus:
          type: string
          enum:
          - CREATING
          - PREPARING
          - PREPARED
          - NOT_PREPARED
          - DELETING
          - FAILED
          - VERSIONING
          - UPDATING
          description: The status of the agent that the version belongs to.
        foundationModel:
          type: string
          description: The foundation model that the version invokes.
        description:
          type: string
          description: The description of the version.
        idleSessionTTLInSeconds:
          type: integer
          description: The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the
            agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this
            time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
        agentResourceRoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
        customerEncryptionKeyArn:
          type: string
          description: The Amazon Resource Name (ARN) of the KMS key that encrypts the agent.
        createdAt:
          type: string
          format: date-time
          description: The time at which the version was created.
        updatedAt:
          type: string
          format: date-time
          description: The time at which the version was last updated.
        failureReasons:
          type: array
          items:
            type: string
          description: A list of reasons that the API operation on the version failed.
        recommendedActions:
          type: array
          items:
            type: string
          description: A list of recommended actions to take for the failed API operation on the version to succeed.
        promptOverrideConfiguration:
          $ref: '#/components/schemas/PromptOverrideConfiguration'
        guardrailConfiguration:
          $ref: '#/components/schemas/BedrockAgentGuardrailConfiguration'
        memoryConfiguration:
          $ref: '#/components/schemas/MemoryConfiguration'
        agentCollaboration:
          type: string
          enum:
          - SUPERVISOR
          - SUPERVISOR_ROUTER
          - DISABLED
          description: The agent's collaboration settings.
      required:
      - agentId
      - agentName
      - agentArn
      - version
      - agentStatus
      - idleSessionTTLInSeconds
      - agentResourceRoleArn
      - createdAt
      - updatedAt
    AgentVersionSummary:
      type: object
      properties:
        agentName:
          type: string
          description: The name of the agent to which the version belongs.
        agentStatus:
          type: string
          enum:
          - CREATING
          - PREPARING
          - PREPARED
          - NOT_PREPARED
          - DELETING
          - FAILED
          - VERSIONING
          - UPDATING
          description: The status of the agent to which the version belongs.
        agentVersion:
          type: string
          description: The version of the agent.
        createdAt:
          type: string
          format: date-time
          description: The time at which the version was created.
        updatedAt:
          type: string
          format: date-time
          description: The time at which the version was last updated.
        description:
          type: string
          description: The description of the version of the agent.
        guardrailConfiguration:
          $ref: '#/components/schemas/BedrockAgentGuardrailConfiguration'
      required:
      - agentName
      - agentStatus
      - agentVersion
      - createdAt
      - updatedAt
    BedrockAgentGuardrailConfiguration:
      type: object
      properties:
        guardrailIdentifier:
          type: string
          description: The unique identifier of the guardrail.
        guardrailVersion:
          type: string
          description: The version of the guardrail.
    BedrockAgentInferenceConfiguration:
      type: object
      properties:
        temperature:
          type: number
          description: The likelihood of the model selecting higher-probability options while generating a response. A lower
            value makes the model more likely to choose higher-probability options, while a higher value makes the model more
            likely to choose lower-probability options.
        topP:
          type: number
          description: While generating a response, the model determines the probability of the following token at each point
            of generation. The value that you set for Top P determines the number of most-likely candidates from which the
            model chooses the next token in the sequence. For example, if you set topP to 0.8, the model only selects the
            next token from the top 80% of the probability distribution of next tokens.
        topK:
          type: integer
          description: While generating a response, the model determines the probability of the following token at each point
            of generation. The value that you set for topK is the number of most-likely candidates from which the model chooses
            the next token in the sequence. For example, if you set topK to 50, the model selects the next token from among
            the top 50 most likely choices.
        maximumLength:
          type: integer
          description: The maximum number of tokens to allow in the generated response.
        stopSequences:
          type: array
          items:
            type: string
          description: A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop
            generating the response.
    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
    DeleteAgentVersionResponse:
      type: object
      properties:
        agentId:
          type: string
          description: The unique identifier of the agent that the version belongs to.
        agentVersion:
          type: string
          description: The version that was deleted.
        agentStatus:
          type: string
          enum:
          - CREATING
          - PREPARING
          - PREPARED
          - NOT_PREPARED
          - DELETING
          - FAILED
          - VERSIONING
          - UPDATING
          description: The status of the agent version.
      required:
      - agentId
      - agentVersion
      - agentStatus
    GetAgentVersionResponse:
      type: object
      properties:
        agentVersion:
          $ref: '#/components/schemas/AgentVersion'
      required:
      - agentVersion
    InternalServerException:
      type: object
      properties:
        message:
          type: string
    ListAgentVersionsResponse:
      type: object
      properties:
        agentVersionSummaries:
          type: array
          items:
            $ref: '#/components/schemas/AgentVersionSummary'
          description: A list of objects, each of which contains information about a version 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:
      - agentVersionSummaries
    MemoryConfiguration:
      type: object
      properties:
        enabledMemoryTypes:
          type: array
          items:
            type: string
            enum:
            - SESSION_SUMMARY
          description: The type of memory that is stored.
        storageDays:
          type: integer
          description: The number of days the agent is configured to retain the conversational context.
        sessionSummaryConfiguration:
          $ref: '#/components/schemas/SessionSummaryConfiguration'
      required:
      - enabledMemoryTypes
    PromptConfiguration:
      type: object
      properties:
        promptType:
          type: string
          enum:
          - PRE_PROCESSING
          - ORCHESTRATION
          - POST_PROCESSING
          - KNOWLEDGE_BASE_RESPONSE_GENERATION
          - MEMORY_SUMMARIZATION
          description: The step in the agent sequence that this prompt configuration applies to.
        promptCreationMode:
          type: string
          enum:
          - DEFAULT
          - OVERRIDDEN
          description: Specifies whether to override the default prompt template for this promptType. Set this value to OVERRIDDEN
            to use the prompt that you provide in the basePromptTemplate. If you leave it as DEFAULT, the agent uses a default
            prompt template.
        promptState:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: Specifies whether to allow the agent to carry out the step specified in the promptType. If you set
            this value to DISABLED, the agent skips that step. The default state for each promptType is as follows. PRE_PROCESSING
            – DISABLED ORCHESTRATION – ENABLED KNOWLEDGE_BASE_RESPONSE_GENERATION – ENABLED POST_PROCESSING – DISABLED
        basePromptTemplate:
          type: string
          description: Defines the prompt template with which to replace the default prompt template. You can use placeholder
            variables in the base prompt template to customize the prompt. For more information, see Prompt template placeholder
            variables. For more information, see Configure the prompt templates.
        inferenceConfiguration:
          $ref: '#/components/schemas/BedrockAgentInferenceConfiguration'
        parserMode:
          type: string
          enum:
          - DEFAULT
          - OVERRIDDEN
          description: Specifies whether to override the default parser Lambda function when parsing the raw foundation model
            output in the part of the agent sequence defined by the promptType. If you set the field as OVERRIDDEN, the overrideLambda
            field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function.
        foundationModel:
          type: string
          description: The agent's foundation model.
        additionalModelRequestFields:
          type: object
          description: If the Converse or ConverseStream operations support the model, additionalModelRequestFields contains
            additional inference parameters, beyond the base set of inference parameters in the inferenceConfiguration field.
            For more information, see Inference request parameters and response fields for foundation models in the Amazon
            Bedrock user guide.
    PromptOverrideConfiguration:
      type: object
      properties:
        promptConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/PromptConfiguration'
          description: Contains configurations to override a prompt template in one part of an agent sequence. For more information,
            see Advanced prompts.
        overrideLambda:
          type: string
          description: The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the
            agent sequence. If you specify this field, at least one of the promptConfigurations must contain a parserMode
            value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Amazon Bedrock Agents.
      required:
      - promptConfigurations
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    SessionSummaryConfiguration:
      type: object
      properties:
        maxRecentSessions:
          type: integer
          description: Maximum number of recent session summaries to include in the agent's prompt context.
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
    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)