Skip to main content

Add a document with pipeline ID in body

POST 

/documents

Adds a document, or a new version of an existing document, to the pipeline named in the pipeline_id field of the body. The operation behaves as POST /pipelines/{pipeline_id}/documents: processing is asynchronous, and the response returns the new version with the status pending, or failed when the processing job cannot be queued.

Permissions. Read and execute on the pipeline, execute on the text splitter that processes the document, and the document's classification in the allow-list.

Documents, versions and fragments describes the request fields, processing and versions.

Request​

Responses​

The version was accepted. The body is the new version, with the status pending, or failed when the processing job could not be queued.