Amazon Bedrock Bedrock Examples API

The Bedrock Examples API from Amazon Bedrock — 4 operation(s) for bedrock examples.

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

POST /datasets/{datasetId}/examples/add Add examples to a dataset draft · Add Dataset Examples #
Ask an LLM
“How do I add new training examples to a dataset I'm building?”
“Are examples added to a dataset's draft validated before saving?”
Tell an agent
Add examples {source} to dataset {datasetId}.
Add these new examples to the draft of dataset {datasetId}.
POST /datasets/{datasetId}/examples/delete Delete examples from a dataset draft · Delete Dataset Examples #
Ask an LLM
“How do I remove specific examples from a dataset draft?”
“Can I delete examples by ID from a dataset without touching the published version?”
Tell an agent destructive · confirm first
Delete examples {exampleIds} from dataset {datasetId}.
Remove the listed examples from the draft of dataset {datasetId}.
GET /datasets/{datasetId}/examples List examples in a dataset · List Dataset Examples #
Ask an LLM
“What training examples are in my dataset?”
“Can I page through a dataset's examples at a specific version?”
Tell an agent
List examples in dataset {datasetId}.
Show {maxResults} examples from dataset {datasetId} at version {datasetVersion}.
POST /datasets/{datasetId}/examples/update Update examples in a dataset draft · Update Dataset Examples #
Ask an LLM
“How do I edit existing examples in a dataset draft?”
“Are dataset example updates validated against the schema before they are saved?”
Tell an agent
Update examples {examples} in dataset {datasetId}.
Replace the existing examples in the draft of dataset {datasetId}.

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-examples-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-examples-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Examples 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:
  /datasets/{datasetId}/examples/add:
    post:
      operationId: AddDatasetExamples
      summary: Add Dataset Examples
      description: Adds examples to the dataset's DRAFT. All examples are validated against the dataset's schema type before
        any writes occur. If any example fails validation, the entire batch is rejected (all-or-nothing semantics).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddDatasetExamplesResponse'
        '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: datasetId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the dataset to add examples to.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure that the API request completes no more than one
                    time. If you don't specify this field, a value is randomly generated for you. If this token matches a
                    previous request, the service ignores the request, but doesn't return an error. For more information,
                    see Ensuring idempotency.
                source:
                  $ref: '#/components/schemas/DataSourceType'
              required:
              - source
      tags:
      - Examples
  /datasets/{datasetId}/examples/delete:
    post:
      operationId: DeleteDatasetExamples
      summary: Delete Dataset Examples
      description: Deletes specific examples by ID from DRAFT. All example IDs are validated before any deletes occur. If
        any ID does not exist in DRAFT, the entire batch is rejected (all-or-nothing semantics).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteDatasetExamplesResponse'
        '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/BedrockAgentcoreControlValidationException'
      parameters:
      - name: datasetId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the dataset.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure that the API request completes no more than one
                    time. If you don't specify this field, a value is randomly generated for you. If this token matches a
                    previous request, the service ignores the request, but doesn't return an error. For more information,
                    see Ensuring idempotency.
                exampleIds:
                  type: array
                  items:
                    type: string
                  description: The IDs of the examples to delete.
              required:
              - exampleIds
      tags:
      - Examples
  /datasets/{datasetId}/examples:
    get:
      operationId: ListDatasetExamples
      summary: List Dataset Examples
      description: Returns paginated examples from the dataset. The server embeds the resolved version in the pagination token.
        Once pagination begins, all subsequent pages are pinned to that version regardless of concurrent mutations.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDatasetExamplesResponse'
        '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/BedrockAgentcoreControlValidationException'
      parameters:
      - name: datasetId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the dataset.
      - name: datasetVersion
        in: query
        schema:
          type: string
        description: 'Version to paginate: "DRAFT" or a version number. Defaults to DRAFT if absent. Only used on the first
          request; for subsequent pages, the version is extracted from the pagination token.'
      - name: maxResults
        in: query
        schema:
          type: integer
        description: Maximum number of examples to return per page.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token for the next page of results.
      tags:
      - Examples
  /datasets/{datasetId}/examples/update:
    post:
      operationId: UpdateDatasetExamples
      summary: Update Dataset Examples
      description: Updates multiple existing examples in-place on DRAFT. All examples are validated against the dataset's
        schema type before any writes occur. If any example fails validation, the entire batch is rejected (all-or-nothing
        semantics).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateDatasetExamplesResponse'
        '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: datasetId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the dataset.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure that the API request completes no more than one
                    time. If you don't specify this field, a value is randomly generated for you. If this token matches a
                    previous request, the service ignores the request, but doesn't return an error. For more information,
                    see Ensuring idempotency.
                examples:
                  type: array
                  items:
                    type: object
                  description: Examples to update. Each element is a JSON object containing a required exampleId field identifying
                    the existing example, plus the replacement fields. Maximum 1000 examples per call.
              required:
              - examples
      tags:
      - Examples
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
    AddDatasetExamplesResponse:
      type: object
      properties:
        datasetArn:
          type: string
          description: The Amazon Resource Name (ARN) of the dataset.
        datasetId:
          type: string
          description: The unique identifier of the dataset.
        status:
          type: string
          enum:
          - CREATING
          - UPDATING
          - DELETING
          - ACTIVE
          - CREATE_FAILED
          - UPDATE_FAILED
          - DELETE_FAILED
          description: The current status of the dataset.
        addedCount:
          type: integer
          description: The number of examples added.
        updatedAt:
          type: string
          description: The timestamp when the examples were added.
        exampleIds:
          type: array
          items:
            type: string
          description: IDs of all added examples (auto-generated UUIDs).
      required:
      - datasetArn
      - datasetId
      - status
      - addedCount
      - updatedAt
      - exampleIds
    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
    ConflictException:
      type: object
      properties:
        message:
          type: string
    DataSourceType:
      type: object
      properties:
        inlineExamples:
          $ref: '#/components/schemas/InlineExamplesSource'
        s3Source:
          $ref: '#/components/schemas/S3Source'
      description: Exactly one member is set.
    DeleteDatasetExamplesResponse:
      type: object
      properties:
        datasetArn:
          type: string
          description: The Amazon Resource Name (ARN) of the dataset.
        datasetId:
          type: string
          description: The unique identifier of the dataset.
        status:
          type: string
          enum:
          - CREATING
          - UPDATING
          - DELETING
          - ACTIVE
          - CREATE_FAILED
          - UPDATE_FAILED
          - DELETE_FAILED
          description: The current status of the dataset.
        deletedCount:
          type: integer
          description: The number of examples deleted.
        updatedAt:
          type: string
          description: The timestamp when the examples were deleted.
      required:
      - datasetArn
      - datasetId
      - status
      - deletedCount
      - updatedAt
    InlineExamplesSource:
      type: object
      properties:
        examples:
          type: array
          items:
            type: object
          description: Examples to add. Each example is assigned an auto-generated UUID.
      required:
      - examples
    InternalServerException:
      type: object
      properties:
        message:
          type: string
    ListDatasetExamplesResponse:
      type: object
      properties:
        datasetArn:
          type: string
          description: The Amazon Resource Name (ARN) of the dataset.
        datasetId:
          type: string
          description: The unique identifier of the dataset.
        datasetVersion:
          type: string
          description: The version returned.
        examples:
          type: array
          items:
            type: object
          description: Paginated example content. Each element is a JSON object containing at least an exampleId field plus
            the schema-specific content fields.
        nextToken:
          type: string
          description: The token for the next page of results, or null if there are no more results.
      required:
      - datasetArn
      - datasetId
      - datasetVersion
      - examples
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    S3Source:
      type: object
      properties:
        s3Uri:
          type: string
          description: Amazon S3 URI of the JSONL file (for example, s3://my-bucket/path/to/examples.jsonl).
      required:
      - s3Uri
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
    UpdateDatasetExamplesResponse:
      type: object
      properties:
        datasetArn:
          type: string
          description: The Amazon Resource Name (ARN) of the dataset.
        datasetId:
          type: string
          description: The unique identifier of the dataset.
        status:
          type: string
          enum:
          - CREATING
          - UPDATING
          - DELETING
          - ACTIVE
          - CREATE_FAILED
          - UPDATE_FAILED
          - DELETE_FAILED
          description: The current status of the dataset.
        updatedCount:
          type: integer
          description: The number of examples updated.
        updatedAt:
          type: string
          description: The timestamp when the examples were updated.
      required:
      - datasetArn
      - datasetId
      - status
      - updatedCount
      - updatedAt
    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)