# PyAI Knowledge Bases API

**Canonical:** https://apis.io/apis/pyai-com/pyai-com-knowledge-bases-api/  
**Provider:** PyAI — https://apis.io/providers/pyai-com/  
**Base URL:** https://api.pyai.com  
**Documentation:** https://docs.pyai.com/api-reference

PyAI Knowledge Bases API is one of 23 APIs that [PyAI](https://apis.io/providers/pyai-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Knowledge Bases. The published artifact set on APIs.io includes an OpenAPI specification.

Hosted knowledge bases for Omni grounding: create a base, add documents (file upload, URL fetch, or pasted text), then bind it to agent profiles or set org-wide defaults. Bound bases are retrieved per turn, no `kb_endpoint` of your own required.

## Operations (14)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/knowledgebases` | List knowledge bases |
| POST | `/v1/knowledgebases` | Create a knowledge base |
| GET | `/v1/knowledgebases/default` | List org-default KB bindings |
| PUT | `/v1/knowledgebases/default` | Set org-default KB bindings |
| GET | `/v1/knowledgebases/{id}` | Get a knowledge base (with documents) |
| PATCH | `/v1/knowledgebases/{id}` | Rename a knowledge base |
| DELETE | `/v1/knowledgebases/{id}` | Delete a knowledge base |
| GET | `/v1/knowledgebases/{id}/documents` | List documents in a knowledge base |
| POST | `/v1/knowledgebases/{id}/documents` | Add a document (file, URL, or text) |
| POST | `/v1/knowledgebases/{id}/crawls` | Crawl a public website into a knowledge base |
| PATCH | `/v1/knowledgebases/{id}/documents/{docId}` | Edit a pasted-text document |
| DELETE | `/v1/knowledgebases/{id}/documents/{docId}` | Remove a document |
| GET | `/v1/knowledgebases/{id}/documents/{docId}/content` | Inspect a document's extracted content |
| POST | `/v1/knowledgebases/{id}/documents/{docId}/retry` | Retry document ingestion |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/pyai-com/openapi/pyai-com-knowledge-bases-api-openapi.yml

## Other PyAI APIs (12)

- [PyAI Agents API](https://apis.io/apis/pyai-com/pyai-com-agents-api/)
- [PyAI AMD API](https://apis.io/apis/pyai-com/pyai-com-amd-api/)
- [PyAI Call Integrations API](https://apis.io/apis/pyai-com/pyai-com-call-integrations-api/)
- [PyAI Cast API](https://apis.io/apis/pyai-com/pyai-com-cast-api/)
- [PyAI Clone API](https://apis.io/apis/pyai-com/pyai-com-clone-api/)
- [PyAI Console creations API](https://apis.io/apis/pyai-com/pyai-com-console-creations-api/)
- [PyAI Dub API](https://apis.io/apis/pyai-com/pyai-com-dub-api/)
- [PyAI Identity API](https://apis.io/apis/pyai-com/pyai-com-identity-api/)
- [PyAI Integrations API](https://apis.io/apis/pyai-com/pyai-com-integrations-api/)
- [PyAI Interpretation API](https://apis.io/apis/pyai-com/pyai-com-interpretation-api/)
- [PyAI MCP API](https://apis.io/apis/pyai-com/pyai-com-mcp-api/)
- [PyAI Models API](https://apis.io/apis/pyai-com/pyai-com-models-api/)

## Tags

Knowledge Bases

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/pyai-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/pyai-com/pyai-com-knowledge-bases-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/pyai-com/.
