Skip to main content
POST
Upload a .pdf, .docx, or .txt document to your organization’s knowledge base. The document is securely stored in object storage and parsed into text chunks. Embeddings are generated and indexed into the vector database for real-time Retrieval-Augmented Generation (RAG).

Authentication

This endpoint requires Bearer token authentication.

Input parameters

string
required
Bearer token for authentication. Format: Bearer <token>.
file
required
The multipart form file upload. Supported formats: .pdf, .docx, .txt.

Response Fields

string
Unique UUID identifier of the knowledge document.
string
UUID of the organization owning the document.
string
Detected document format type (pdf, docx, txt).
string
Original filename of the uploaded document.
string
ISO 8601 timestamp of upload completion.
string
ISO 8601 timestamp of last metadata update.


Previous
List documents
GET /api/v1/knowledge-base
Next