The Knowledge base API gives you programmatic access to the documents that power your agent’s knowledge base. YYou can use it to create, retrieve, update, and delete documents, as well as manage their metadata and individual chunks.Documentation Index
Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
| Endpoint | Description |
|---|---|
| Document | |
| GETSearch documents | Retrieve all documents in a project, or filter by type, page, and limit. |
| GETGet document | Fetch a single document by ID, including its chunks and metadata. |
| POSTCreate document | Add a new document to the knowledge base from a URL or integration source. |
| POSTUpload table document | Upload structured table data as a knowledge base document, with optional chunking and LLM processing settings. |
| PUTReplace document | Replace an existing document’s source and metadata entirely. |
| PATCHUpdate chunk metadata | Update the metadata on a specific chunk within a document. |
| PATCHUpdate chunk metadata by chunk ID | Update the metadata associated with the specified document chunk |
| DELDelete document | Permanently remove a document from the knowledge base by ID. |
Documents
Documents are the content sources your agent draws from when answering questions. Each document has a type — URL, PDF, DOCX, plain text, CSV, XLSX, or table — and is processed into chunks that get indexed for retrieval. You can create documents from a URL or external integration, upload structured table data directly, or replace an existing document entirely when its source changes. URL documents support arefreshRate setting (daily, weekly, monthly, or never) that controls how often Voiceflow re-fetches and re-indexes the content.