[POST]
/v1/knowledge/documents Upload Document
Upload a document to your knowledge base vector store. This document will be chunked, embedded, and made immediately available for your Evnao AI agent to query during customer conversations.
Parameters
| Name | Type | Description |
|---|---|---|
| file * | file | The file object to upload. We currently support .pdf, .md, .txt, and .html. Max size is 50MB. (Required) |
| title * | string | A human-readable title for this document. Used in the dashboard UI and sometimes passed to the LLM for context. (Required) |
| tags | array | Optional array of strings to categorize the document (e.g. ["billing","v2-api"]). Useful for scoping searches. |
Example Request
curl https://api.evnao.com/v1/knowledge/documents \ -H "Authorization: Bearer sk_live_xxxxxxxxxx" \ -F "file=@/path/to/return-policy.pdf" \ -F "title=Return Policy 2024" \ -F "tags[]=returns" \ -F "tags[]=policy"