Get a document
GET/pipelines/:pipeline_id/documents/:document_id
Returns the latest current version of a document in a pipeline, with the processing status in the status field. A client application retrieves the document after adding the document to find out when processing is complete. as_of returns the version that was current at a given time, and include_expired=true also considers expired versions.
Permissions. Read on the pipeline.
Documents, versions and fragments describes the processing lifecycle and point-in-time reads.
Request
Responses
- 200
- 400
- 401
- 403
- 404
The body is the document version.
The as_of value lies outside the range of valid timestamps (Invalid version).
The authentication headers are missing or invalid, or the API key is inactive or expired. Errors lists the messages.
The pipeline exists, and the key lacks read permission on the pipeline (Unauthorized: access level ... required for Pipeline with id ...).
No pipeline with this identifier exists (Pipeline with id <id> not found), or the pipeline has no matching version of the document (Document not found).