Amazon Bedrock Bedrock Invocationsteps API

The Bedrock Invocationsteps API from Amazon Bedrock — 2 operation(s) for bedrock invocationsteps.

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

PUT /sessions/{sessionIdentifier}/invocationSteps/ Add a step to a session invocation · Put Invocation Step #
Ask an LLM
“How do I store a text or image checkpoint in a session's invocation?”
“Can I add an invocation step to a specific invocation in a session?”
Tell an agent
Add invocation step {invocationStepId} to invocation {invocationIdentifier} in session {sessionIdentifier}.
Store {payload} as a step in invocation {invocationIdentifier} of session {sessionIdentifier}.
POST /sessions/{sessionIdentifier}/invocationSteps/ List invocation steps in a session · List Invocation Steps #
Ask an LLM
“What steps have been recorded in a session's invocation?”
“Can I list only the steps of one invocation within a session?”
Tell an agent
List all invocation steps in session {sessionIdentifier}.
List invocation steps for invocation {invocationIdentifier} in session {sessionIdentifier}.
POST /sessions/{sessionIdentifier}/invocationSteps/{invocationStepId} Get one step of a session invocation · Get Invocation Step #
Ask an LLM
“How do I read the details of a single step in a session's invocation?”
“What does a specific invocation step contain?”
Tell an agent
Get invocation step {invocationStepId} in session {sessionIdentifier} for invocation {invocationIdentifier}.
Show step {invocationStepId} of invocation {invocationIdentifier} in session {sessionIdentifier}.

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-invocationsteps-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-invocationsteps-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Invocationsteps 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-runtime.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /sessions/{sessionIdentifier}/invocationSteps/:
    put:
      operationId: PutInvocationStep
      summary: Put Invocation Step
      description: 'Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints,
        including text and images, for each interaction. For more information about sessions, see Store and retrieve conversation
        history and context with Amazon Bedrock sessions. Related APIs: GetInvocationStep ListInvocationSteps ListInvocations
        ListSessions'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutInvocationStepResponse'
        '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/BedrockAgentRuntimeInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ServiceQuotaExceededException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: sessionIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier for the session to add the invocation step to. You can specify either the session's
          sessionId or its Amazon Resource Name (ARN).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                invocationIdentifier:
                  type: string
                  description: The unique identifier (in UUID format) of the invocation to add the invocation step to.
                invocationStepTime:
                  type: string
                  format: date-time
                  description: The timestamp for when the invocation step occurred.
                payload:
                  $ref: '#/components/schemas/InvocationStepPayload'
                invocationStepId:
                  type: string
                  description: The unique identifier of the invocation step in UUID format.
              required:
              - invocationIdentifier
              - invocationStepTime
              - payload
      tags:
      - Invocationsteps
    post:
      operationId: ListInvocationSteps
      summary: List Invocation Steps
      description: Lists all invocation steps associated with a session and optionally, an invocation within the session.
        For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInvocationStepsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentRuntimeInternalServerException'
        '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/ValidationException'
      parameters:
      - name: nextToken
        in: query
        schema:
          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.
      - name: maxResults
        in: query
        schema:
          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.
      - name: sessionIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier for the session associated with the invocation steps. You can specify either the
          session's sessionId or its Amazon Resource Name (ARN).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                invocationIdentifier:
                  type: string
                  description: The unique identifier (in UUID format) for the invocation to list invocation steps for.
      tags:
      - Invocationsteps
  /sessions/{sessionIdentifier}/invocationSteps/{invocationStepId}:
    post:
      operationId: GetInvocationStep
      summary: Get Invocation Step
      description: Retrieves the details of a specific invocation step within an invocation in a session. For more information
        about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetInvocationStepResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentRuntimeInternalServerException'
        '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/ValidationException'
      parameters:
      - name: invocationStepId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier (in UUID format) for the specific invocation step to retrieve.
      - name: sessionIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier for the invocation step's associated session. You can specify either the session's
          sessionId or its Amazon Resource Name (ARN).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                invocationIdentifier:
                  type: string
                  description: The unique identifier for the invocation in UUID format.
              required:
              - invocationIdentifier
      tags:
      - Invocationsteps
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
    BedrockAgentRuntimeImageBlock:
      type: object
      properties:
        format:
          type: string
          enum:
          - png
          - jpeg
          - gif
          - webp
          description: The format of the image.
        source:
          $ref: '#/components/schemas/BedrockAgentRuntimeImageSource'
      required:
      - format
      - source
    BedrockAgentRuntimeImageSource:
      type: object
      properties:
        bytes:
          type: string
          description: The raw image bytes for the image. If you use an Amazon Web Services SDK, you don't need to encode
            the image bytes in base64.
        s3Location:
          $ref: '#/components/schemas/BedrockAgentRuntimeS3Location'
      description: Exactly one member is set.
    BedrockAgentRuntimeInternalServerException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          description: The reason for the exception. If the reason is BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE, the model
            invocation service is unavailable. Retry your request.
    BedrockAgentRuntimeS3Location:
      type: object
      properties:
        uri:
          type: string
          description: The path to the Amazon S3 bucket where the image is stored.
      required:
      - uri
    BedrockSessionContentBlock:
      type: object
      properties:
        text:
          type: string
          description: The text in the invocation step.
        image:
          $ref: '#/components/schemas/BedrockAgentRuntimeImageBlock'
      description: Exactly one member is set.
    ConflictException:
      type: object
      properties:
        message:
          type: string
    GetInvocationStepResponse:
      type: object
      properties:
        invocationStep:
          $ref: '#/components/schemas/InvocationStep'
      required:
      - invocationStep
    InvocationStep:
      type: object
      properties:
        sessionId:
          type: string
          description: The unique identifier of the session containing the invocation step.
        invocationId:
          type: string
          description: The unique identifier (in UUID format) for the invocation that includes the invocation step.
        invocationStepId:
          type: string
          description: The unique identifier (in UUID format) for the invocation step.
        invocationStepTime:
          type: string
          format: date-time
          description: The timestamp for when the invocation step was created.
        payload:
          $ref: '#/components/schemas/InvocationStepPayload'
      required:
      - sessionId
      - invocationId
      - invocationStepId
      - invocationStepTime
      - payload
    InvocationStepPayload:
      type: object
      properties:
        contentBlocks:
          type: array
          items:
            $ref: '#/components/schemas/BedrockSessionContentBlock'
          description: The content for the invocation step.
      description: Exactly one member is set.
    InvocationStepSummary:
      type: object
      properties:
        sessionId:
          type: string
          description: The unique identifier for the session associated with the invocation step.
        invocationId:
          type: string
          description: A unique identifier for the invocation in UUID format.
        invocationStepId:
          type: string
          description: The unique identifier (in UUID format) for the invocation step.
        invocationStepTime:
          type: string
          format: date-time
          description: The timestamp for when the invocation step was created.
      required:
      - sessionId
      - invocationId
      - invocationStepId
      - invocationStepTime
    ListInvocationStepsResponse:
      type: object
      properties:
        invocationStepSummaries:
          type: array
          items:
            $ref: '#/components/schemas/InvocationStepSummary'
          description: A list of summaries for each invocation step associated with a session and if you specified it, an
            invocation within the session.
        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:
      - invocationStepSummaries
    PutInvocationStepResponse:
      type: object
      properties:
        invocationStepId:
          type: string
          description: The unique identifier of the invocation step in UUID format.
      required:
      - invocationStepId
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
    ValidationException:
      type: object
      properties:
        message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/bedrock-agent-runtime/service/2023-07-26/bedrock-agent-runtime-2023-07-26.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)