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: the optional path field places the version at a document path, processing is asynchronous, and the response returns the new version with the status pending, or failed when the processing job cannot be queued.

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

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.