Knowledge Bases
Add a document (file, URL, or text)
Three ways to add content: a multipart file upload (pdf, docx, xlsx, txt, md, csv, html, json; 25MB max), a JSON { "url" } to fetch and parse, or a JSON { "text" } to paste content directly. The document registers as pending and is chunked + embedded asynchronously; poll its status until indexed. Requires the kb:manage scope.
post/v1/knowledgebases/{id}/documents
Request
- Base URL: https://api.pyai.com
- URL: https://api.pyai.com/v1/knowledgebases/{id}/documents
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Path parameters
idstring required
Request body
Response
Document registered (pending ingestion)
Changes
No recorded changes to this operation across all 2 revisions of this API.