Documents
Create and Index Document (Streaming)
Creates and indexes a document with real-time progress updates via Server-Sent Events
POST
Request Body
Project ID to associate the document with
Name of the file/document
Type of file (e.g.,
pdf, txt, md, docx)Source type of the document (e.g.,
upload, url, integration)Content of the document to be indexed
Optional file ID if document is linked to a file
Response
This endpoint returns a Server-Sent Events (SSE) stream with real-time progress updates.Event type (e.g.,
progress, complete, error)Progress percentage (0-100)
Current status message

