Skip to main content
POST

Request Body

string
required
Project ID to associate the document with
string
required
Name of the file/document
string
required
Type of file (e.g., pdf, txt, md, docx)
string
required
Source type of the document (e.g., upload, url, integration)
string
required
Content of the document to be indexed
string
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.
string
Event type (e.g., progress, complete, error)
number
Progress percentage (0-100)
string
Current status message