API Reference
Ingest Text
Ingest a text document.
Args:
request: IngestTextRequest containing:
- content: Text content to ingest
- filename: Optional filename to help determine content type
- metadata: Optional metadata dictionary
- rules: Optional list of rules. Each rule should be either:
- MetadataExtractionRule: {"type": "metadata_extraction", "schema": {...}}
- NaturalLanguageRule: {"type": "natural_language", "prompt": "..."}
- folder_name: Optional folder to scope the document to
- end_user_id: Optional end-user ID to scope the document to
auth: Authentication context
Returns:
Document: Metadata of ingested document
POST
Headers
Body
application/json
Request model for ingesting text content
Optional folder scope for the operation
Optional end-user scope for the operation
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?