v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-01-1340148239.5 KB
/datastores/{id}/documents

Ingest Document

Ingest a document into a given Datastore.

Ingestion is an asynchronous task. Returns a document id which can be used to track the status of the ingestion job through calls to the GET /datastores/{datastore_id}/documents/{document_id}/metadata API.

This id can also be used to delete the document through the DELETE /datastores/{datastore_id}/documents/{document_id} API.

file must be a PDF, HTML, DOC(X) or PPT(X) file. The filename must end with one of the following extensions: .pdf, .html, .htm, .mhtml, .doc, .docx, .ppt, .pptx.

post/datastores/{datastore_id}/documents

Path parameters

datastore_idstring uuid required

Datastore ID of the datastore in which to ingest the document

Datastore ID of the datastore in which to ingest the document

Response

Successful Response

idstring uuid required

ID of the document being ingested