Skip to main content

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. The array omits versions whose classification the key's classification allow-list does not cover. A document identifier that was never used, or whose versions were all deleted, returns HTTP 404. A document whose versions have all expired, or were all created after as_of, returns an empty array.

Permissions. Read on the document's pipeline.

Documents, versions and fragments describes versions and point-in-time reads.

Request​

Responses​

The body is an array of the document's versions, newest first. The array is empty when no version matches, or when the key's classification allow-list does not cover the document's classification.