List document versions
GET/documents/:document_id/versions
Returns the versions of a document as a JSON array, newest first, without the list envelope. By default the array contains only current versions, and include_expired=true adds the expired versions. A document identifier that matches no version returns an empty array.
Permissions. Read on the document's pipeline.
Documents, versions and fragments describes versions and point-in-time reads.
Request
Responses
- 200
- 400
- 401
- 403
The body is an array of the document's versions, newest first. The array is empty when no version matches.
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 key lacks read permission on the pipeline that contains the document (Unauthorized: access level ... required for Pipeline with id ...).