Amazon Bedrock Bedrock Code Interpreters API

The Bedrock Code Interpreters API from Amazon Bedrock — 2 operation(s) for bedrock code interpreters.

GitHub OpenAPI

Operations 4

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 /code-interpreters Create a custom code interpreter · Create Code Interpreter #
Ask an LLM
“How do I create a custom code interpreter to run my own Python code?”
“Can a custom code interpreter access my own S3 buckets through a VPC?”
Tell an agent
Create a code interpreter named {name} with network config {networkConfiguration}.
Create code interpreter {name} using role {executionRoleArn} and certificates {certificates}.
POST /code-interpreters List custom code interpreters · List Code Interpreters #
Ask an LLM
“Which custom code interpreters do I have in my account?”
“Can I list only the custom code interpreters of a certain type?”
Tell an agent
List all my custom code interpreters.
List code interpreters of type {type}.
GET /code-interpreters/{codeInterpreterId} Get a custom code interpreter · Get Code Interpreter #
Ask an LLM
“What role and network config does a specific code interpreter use?”
“Can I look up one custom code interpreter by its ID?”
Tell an agent
Show code interpreter {codeInterpreterId}.
Get the configuration of custom code interpreter {codeInterpreterId}.
DELETE /code-interpreters/{codeInterpreterId} Delete a custom code interpreter · Delete Code Interpreter #
Ask an LLM
“How do I delete a custom code interpreter I no longer use?”
“Can I remove a code interpreter by its ID?”
Tell an agent destructive · confirm first
Delete code interpreter {codeInterpreterId}.
Remove custom code interpreter {codeInterpreterId} from my account.

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-code-interpreters-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-code-interpreters-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Code Interpreters API
  version: '2023-04-20'
  description: Generated from AWS's published Smithy model for Amazon Bedrock. 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://bedrock-agentcore-control.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /code-interpreters:
    put:
      operationId: CreateCodeInterpreter
      summary: Create Code Interpreter
      description: Creates a custom code interpreter.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCodeInterpreterResponse'
        '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'
        '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/BedrockAgentcoreControlValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The name of the code interpreter. The name must be unique within your account.
                description:
                  type: string
                  description: The description of the code interpreter.
                executionRoleArn:
                  type: string
                  description: The Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter
                    to access Amazon Web Services services.
                networkConfiguration:
                  $ref: '#/components/schemas/CodeInterpreterNetworkConfiguration'
                certificates:
                  type: array
                  items:
                    $ref: '#/components/schemas/Certificate'
                  description: A list of certificates to install in the code interpreter.
                filesystemConfigurations:
                  type: array
                  items:
                    $ref: '#/components/schemas/ToolsFileSystemConfiguration'
                  description: The file system configurations to mount into the code interpreter. Use these configurations
                    to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon
                    EFS) access points. Your sessions can then access your data. If you don't specify this field, no file
                    systems are mounted.
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure that the operation completes no more than one
                    time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request but does
                    not return an error.
                tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: A map of tag keys and values to assign to the code interpreter. Tags enable you to categorize
                    your resources in different ways, for example, by purpose, owner, or environment.
              required:
              - name
              - networkConfiguration
      tags:
      - Code Interpreters
    post:
      operationId: ListCodeInterpreters
      summary: List Code Interpreters
      description: Lists all custom code interpreters in your account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCodeInterpretersResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return in the response.
      - name: nextToken
        in: query
        schema:
          type: string
        description: A token to retrieve the next page of results.
      - name: type
        in: query
        schema:
          type: string
          enum:
          - SYSTEM
          - CUSTOM
        description: The type of code interpreters to list.
      tags:
      - Code Interpreters
  /code-interpreters/{codeInterpreterId}:
    get:
      operationId: GetCodeInterpreter
      summary: Get Code Interpreter
      description: Gets information about a custom code interpreter.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCodeInterpreterResponse'
        '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'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: codeInterpreterId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the code interpreter to retrieve.
      tags:
      - Code Interpreters
    delete:
      operationId: DeleteCodeInterpreter
      summary: Delete Code Interpreter
      description: Deletes a custom code interpreter.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCodeInterpreterResponse'
        '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/BedrockAgentcoreControlValidationException'
      parameters:
      - name: codeInterpreterId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the code interpreter to delete.
      - name: clientToken
        in: query
        schema:
          type: string
        description: A unique, case-sensitive identifier to ensure idempotency of the request.
      tags:
      - Code Interpreters
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-agentcore
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
    BedrockAgentcoreControlValidationException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - CannotParse
          - FieldValidationFailed
          - IdempotentParameterMismatchException
          - EventInOtherSession
          - ResourceConflict
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
      required:
      - message
      - reason
    BedrockAgentcoreControlVpcConfig:
      type: object
      properties:
        securityGroups:
          type: array
          items:
            type: string
          description: The security groups associated with the VPC configuration.
        subnets:
          type: array
          items:
            type: string
          description: The subnets associated with the VPC configuration.
        requireServiceS3Endpoint:
          type: boolean
          description: This field applies only to Agent Runtimes. It is not applicable to Browsers or Code Interpreters. Controls
            whether a service-managed Amazon S3 gateway endpoint is provisioned in the VPC network topology for the agent
            runtime. This gateway is used by Amazon Bedrock AgentCore Runtime to download code and container images during
            agent startup. Starting May 5, 2026, Amazon Bedrock AgentCore Runtime is gradually rolling out a change to how
            network isolation is configured for VPC mode agents. Agent runtimes created on or after this rollout will no longer
            include the service-managed Amazon S3 gateway
      required:
      - securityGroups
      - subnets
    Certificate:
      type: object
      properties:
        location:
          $ref: '#/components/schemas/CertificateLocation'
      required:
      - location
    CertificateLocation:
      type: object
      properties:
        secretsManager:
          $ref: '#/components/schemas/SecretsManagerLocation'
      description: Exactly one member is set.
    CodeInterpreterNetworkConfiguration:
      type: object
      properties:
        networkMode:
          type: string
          enum:
          - PUBLIC
          - SANDBOX
          - VPC
          description: The network mode for the code interpreter. This field specifies how the code interpreter connects to
            the network.
        vpcConfig:
          $ref: '#/components/schemas/BedrockAgentcoreControlVpcConfig'
      required:
      - networkMode
    CodeInterpreterSummary:
      type: object
      properties:
        codeInterpreterId:
          type: string
          description: The unique identifier of the code interpreter.
        codeInterpreterArn:
          type: string
          description: The Amazon Resource Name (ARN) of the code interpreter.
        name:
          type: string
          description: The name of the code interpreter.
        description:
          type: string
          description: The description of the code interpreter.
        status:
          type: string
          enum:
          - CREATING
          - CREATE_FAILED
          - READY
          - DELETING
          - DELETE_FAILED
          - DELETED
          description: The current status of the code interpreter.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the code interpreter was created.
        lastUpdatedAt:
          type: string
          format: date-time
          description: The timestamp when the code interpreter was last updated.
      required:
      - codeInterpreterId
      - codeInterpreterArn
      - status
      - createdAt
    ConflictException:
      type: object
      properties:
        message:
          type: string
    CreateCodeInterpreterResponse:
      type: object
      properties:
        codeInterpreterId:
          type: string
          description: The unique identifier of the created code interpreter.
        codeInterpreterArn:
          type: string
          description: The Amazon Resource Name (ARN) of the created code interpreter.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the code interpreter was created.
        status:
          type: string
          enum:
          - CREATING
          - CREATE_FAILED
          - READY
          - DELETING
          - DELETE_FAILED
          - DELETED
          description: The current status of the code interpreter.
      required:
      - codeInterpreterId
      - codeInterpreterArn
      - createdAt
      - status
    DeleteCodeInterpreterResponse:
      type: object
      properties:
        codeInterpreterId:
          type: string
          description: The unique identifier of the deleted code interpreter.
        status:
          type: string
          enum:
          - CREATING
          - CREATE_FAILED
          - READY
          - DELETING
          - DELETE_FAILED
          - DELETED
          description: The current status of the code interpreter deletion.
        lastUpdatedAt:
          type: string
          format: date-time
          description: The timestamp when the code interpreter was last updated.
      required:
      - codeInterpreterId
      - status
      - lastUpdatedAt
    EfsConfiguration:
      type: object
      properties:
        accessPointArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon Elastic File System (Amazon EFS) access point to mount.
        mountPath:
          type: string
          description: The absolute path within the session at which the access point is mounted, for example /mnt/efs. Each
            mount path must be unique across all file system configurations in the session.
        fileSystemArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon Elastic File System (Amazon EFS) file system that owns
            the access point.
      required:
      - accessPointArn
      - mountPath
      - fileSystemArn
    GetCodeInterpreterResponse:
      type: object
      properties:
        codeInterpreterId:
          type: string
          description: The unique identifier of the code interpreter.
        codeInterpreterArn:
          type: string
          description: The Amazon Resource Name (ARN) of the code interpreter.
        name:
          type: string
          description: The name of the code interpreter.
        description:
          type: string
          description: The description of the code interpreter.
        executionRoleArn:
          type: string
          description: The IAM role ARN that provides permissions for the code interpreter.
        networkConfiguration:
          $ref: '#/components/schemas/CodeInterpreterNetworkConfiguration'
        status:
          type: string
          enum:
          - CREATING
          - CREATE_FAILED
          - READY
          - DELETING
          - DELETE_FAILED
          - DELETED
          description: The current status of the code interpreter.
        certificates:
          type: array
          items:
            $ref: '#/components/schemas/Certificate'
          description: The list of certificates configured for the code interpreter.
        filesystemConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/ToolsFileSystemConfiguration'
          description: The file system configurations mounted into the code interpreter. Each entry describes an access point
            and its mount path.
        failureReason:
          type: string
          description: The reason for failure if the code interpreter is in a failed state.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the code interpreter was created.
        lastUpdatedAt:
          type: string
          format: date-time
          description: The timestamp when the code interpreter was last updated.
      required:
      - codeInterpreterId
      - codeInterpreterArn
      - name
      - networkConfiguration
      - status
      - createdAt
      - lastUpdatedAt
    InternalServerException:
      type: object
      properties:
        message:
          type: string
    ListCodeInterpretersResponse:
      type: object
      properties:
        codeInterpreterSummaries:
          type: array
          items:
            $ref: '#/components/schemas/CodeInterpreterSummary'
          description: The list of code interpreter summaries.
        nextToken:
          type: string
          description: A token to retrieve the next page of results.
      required:
      - codeInterpreterSummaries
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    S3FilesConfiguration:
      type: object
      properties:
        accessPointArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon Simple Storage Service (Amazon S3) Files access point
            to mount.
        mountPath:
          type: string
          description: The absolute path within the session at which the access point is mounted, for example /mnt/s3data.
            Each mount path must be unique across all file system configurations in the session.
        fileSystemArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon Simple Storage Service (Amazon S3) Files file system that
            owns the access point.
      required:
      - accessPointArn
      - mountPath
      - fileSystemArn
    SecretsManagerLocation:
      type: object
      properties:
        secretArn:
          type: string
          description: The ARN of the Amazon Web Services Secrets Manager secret containing the certificate.
      required:
      - secretArn
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
    ToolsFileSystemConfiguration:
      type: object
      properties:
        s3FilesConfiguration:
          $ref: '#/components/schemas/S3FilesConfiguration'
        efsConfiguration:
          $ref: '#/components/schemas/EfsConfiguration'
      description: Exactly one member is set.
    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-agentcore-control/service/2023-06-05/bedrock-agentcore-control-2023-06-05.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)