Skip to main content
POST
Index Document

Body Parameters

file
required
The document file to upload and index. Supported formats include PDF, TXT, PNG, JPG, and more.
string
required
The ID of the datastore where the document will be indexed. You can get this ID from the Create Datastore endpoint.

Example Request

Response

Returns information about the indexed document.

Response Fields

string
The unique identifier for the indexed document
string
The ID of the datastore containing the document
string
The name of the uploaded file
string
The indexing status of the document (e.g., indexed, processing)
string
Timestamp of when the document was successfully indexed