Insert text
For short content that fits in a JSON body (< ~1MB):InsertOptions
Upload a file
PDFs, CSVs, markdown, plain text. Images are extracted from PDFs automatically.- Node
- Browser / Blob
- Bun
Supported file types
- PDF (text + tables + images)
- CSV
- Markdown
- Plain text (.txt)
- DOCX
Poll async jobs manually
If you setwait: false and want to poll yourself:
waitForJob:
JobStatus values
Upload polling
Uploads have their own status endpoint because the pipeline goes: upload → file processor → fact extraction → ready.wait: true handles polling automatically; to do it manually: