API Reference
Ingest File
Ingest a file document asynchronously.
Args:
file: File to ingest
metadata: JSON string of metadata
rules: JSON string of rules list. Each rule should be either:
- MetadataExtractionRule: {"type": "metadata_extraction", "schema": {...}}
- NaturalLanguageRule: {"type": "natural_language", "prompt": "..."}
auth: Authentication context
use_colpali: Whether to use ColPali embedding model
folder_name: Optional folder to scope the document to
end_user_id: Optional end-user ID to scope the document to
redis: Redis connection pool for background tasks
Returns:
Document with processing status that can be used to check progress
POST
Headers
Query Parameters
Body
multipart/form-data
Response
200
application/json
Successful Response
Represents a document stored in the database documents collection
Information about a file stored in storage
Was this page helpful?