Amazon Bedrock Knowledge Bases API

The Knowledge Bases API from Amazon Bedrock — 4 operation(s) for knowledge bases.

GitHub OpenAPI

Operations 10

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}/agentversions/{agentVersion}/knowledgebases/ Associate a knowledge base with an agent · Associate Agent Knowledge Base #
Ask an LLM
“How do I connect a knowledge base to an agent so it can answer questions from my data?”
“Can I describe why an agent should use a particular knowledge base?”
Tell an agent
Associate knowledge base {knowledgeBaseId} with agent {agentId} version {agentVersion}, described as {description}.
Connect knowledge base {knowledgeBaseId} to agent {agentId} version {agentVersion} with state {knowledgeBaseState}.
POST /agents/{agentId}/agentversions/{agentVersion}/knowledgebases/ List knowledge bases attached to an agent · List Agent Knowledge Bases #
Ask an LLM
“Which knowledge bases are currently attached to my agent?”
“What state is each knowledge base in for a given agent version?”
Tell an agent
List knowledge bases associated with agent {agentId} version {agentVersion}.
Show the first {maxResults} knowledge bases attached to agent {agentId} version {agentVersion}.
PUT /knowledgebases/ Create a knowledge base · Create Knowledge Base #
Ask an LLM
“How do I create a knowledge base so my agents can search my data?”
“What do I need to set up a knowledge base, like a role and storage configuration?”
Tell an agent
Create knowledge base {name} with role {roleArn} and configuration {configuration}.
Create knowledge base {name} described as {description} using storage {storage}.
POST /knowledgebases/ List knowledge bases in the account · List Knowledge Bases #
Ask an LLM
“What knowledge bases exist in my account?”
“Can I page through all my knowledge bases?”
Tell an agent
List all knowledge bases in my account.
Show {maxResults} knowledge bases starting from token {nextToken}.
DELETE /knowledgebases/{knowledgeBaseId} Delete a knowledge base · Delete Knowledge Base #
Ask an LLM
“How do I delete a knowledge base I no longer need?”
“What should I do before removing a knowledge base from an agent?”
Tell an agent destructive · confirm first
Delete knowledge base {knowledgeBaseId}.
Remove knowledge base {knowledgeBaseId} from my account.
GET /knowledgebases/{knowledgeBaseId} Get a knowledge base · Get Knowledge Base #
Ask an LLM
“How do I see the configuration of one knowledge base?”
“What role and storage does a specific knowledge base use?”
Tell an agent
Get knowledge base {knowledgeBaseId}.
Show the configuration of knowledge base {knowledgeBaseId}.
PUT /knowledgebases/{knowledgeBaseId} Update a knowledge base's name, description and role · Update Knowledge Base #
Ask an LLM
“Can I rename a knowledge base or change its description?”
“Is it possible to point a knowledge base at a different IAM role?”
Tell an agent
Rename knowledge base {knowledgeBaseId} to {name} with role {roleArn}.
Update knowledge base {knowledgeBaseId} description to {description}.
DELETE /agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/ Remove a knowledge base from an agent · Disassociate Agent Knowledge Base #
Ask an LLM
“How do I detach a knowledge base from an agent?”
“Can I disconnect a knowledge base from an agent without deleting the knowledge base?”
Tell an agent destructive · confirm first
Disassociate knowledge base {knowledgeBaseId} from agent {agentId} version {agentVersion}.
Detach knowledge base {knowledgeBaseId} from agent {agentId} version {agentVersion}.
GET /agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/ Get an agent's knowledge base association · Get Agent Knowledge Base #
Ask an LLM
“How do I check whether a specific knowledge base is attached to an agent?”
“What state is one knowledge base in for a given agent version?”
Tell an agent
Get knowledge base {knowledgeBaseId} on agent {agentId} version {agentVersion}.
Show the state of knowledge base {knowledgeBaseId} for agent {agentId} version {agentVersion}.
PUT /agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/ Update an agent's knowledge base association · Update Agent Knowledge Base #
Ask an LLM
“Can I change the description of a knowledge base an agent uses?”
“How do I turn off a knowledge base for an agent without deleting it?”
Tell an agent
Update the description of knowledge base {knowledgeBaseId} on agent {agentId} version {agentVersion} to {description}.
Set knowledge base {knowledgeBaseId} on agent {agentId} version {agentVersion} to state {knowledgeBaseState}.

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-knowledge-bases-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-knowledge-bases-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Knowledge Bases API
  version: '2023-04-20'
  description: Generated from AWS's published Smithy model for Amazon Bedrock. 10 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:


# --- truncated at 32 KB (63 KB total) ---
# Full source: https://artifacts.apis.io/amazon-bedrock/openapi/amazon-bedrock-knowledge-bases-api-openapi.yml