Documents
Upload Document
Upload a document or text content to a dataset
POST
Upload Document
Request
Uploads a document to a dataset. Supports text content, PDFs, images, and other file types.Path Parameters
The dataset to upload to
Headers
Bearer token for authentication
Body (JSON Upload)
For text content, use JSON:Text content to index
Custom metadata (title, category, tags, etc.)
Body (File Upload)
For files, usemultipart/form-data:
File to upload (PDF, image, text, etc.)
JSON-encoded metadata object
Response
Unique document identifier
Parent dataset ID
Original filename (for file uploads)
Document size in bytes
Processing status:
processing, ready, failedNumber of searchable chunks (available when
status: ready)ISO 8601 creation timestamp
Document metadata
Examples
Text Upload
cURL
Python
File Upload
cURL
Python
Response
Processing
Documents are processed asynchronously:- Upload - File received and stored
- Extraction - Text extracted from file
- Chunking - Content split into searchable segments
- Embedding - Vector embeddings generated
- Indexing - Added to search index
Supported File Types
- Text:
.txt,.md,.csv - Documents:
.pdf,.docx,.pptx - Images:
.jpg,.png(OCR applied) - Code:
.py,.js,.java, etc. - Data:
.json,.xml,.yaml
Limits
- Max file size: 10MB
- Max content length: 1M characters
- Max 10,000 documents per dataset
Notes
- Set
titlein metadata for better search results - Use
categoryandtagsfor filtering - Custom metadata is searchable
- Duplicate content is allowed
Upload Document