Skip to main content
Get one revision of a document

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

id
string
required

Identifier of the document the revision belongs to.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

revision
integer
required

Which revision of it to return, as listed in the document's history.

Required range: x >= 0
Example:

3

Response

Returns the document as it stood at that revision.

The document as it stood at this revision, in the same shape the document itself is returned in. The fields declared by its metadata definition sit next to the ones listed here, so the properties actually present depend on the definition the document belongs to.

alerts
object[] | null

Reminders configured on the document, each notifying its recipient once its trigger time has passed.

barcode
string | null

Hash of the stored barcode image rendered for the document, in the barcode format declared by its metadata definition.

Example:

"g153bn7qeo63b5kzec7q9cvnxnd03n34d4zkfyjy8m728eqdznf3htxm8mh14d48"

barcodeContent
string | null

Text encoded in the barcode image - a link that resolves back to this document.

Example:

"https://app.example.com/verification?id=a0d01c9d-f72f-4c57-af11-e26bda19cc59"

certificateOfFulfillment
string | null

Hash of the stored audit trail sealed once the document's process finished, the certificate of fulfillment.

Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

commentsOnCompletedAllowed
boolean | null

Whether comments may still be added once the document's process has ended. The value is frozen when the process finishes, taken from the settings of the user who completed it, or from the owner's settings when that user has none or belongs to a different organization.

content
string | null

Short summary of the document shown in listings - either generated by the LLM extraction or assembled from the extracted text and the content fields of the document's metadata definition.

counterId
string | null

Value taken from the numbering series configured for the document's metadata definition, and substituted into the document's own numbering fields.

Example:

"TEF_2016_aa_001"

createDate
string<date-time> | null

Date and time when the document was created.

createName
object | null

User who created the document. Unlike owner it stays the same when the document changes hands.

customFields
object[] | null

Free-form key/value metadata attached to the document by the client, alongside the fields its metadata definition declares. The serialized set is limited to 10 KiB.

Maximum array length: 100
definitionLanguage
string | null

Language declared on the metadata definition the document was created from. It is the first language candidate for text extraction of the main file.

Example:

"en"

definitionType
string | null

Kind of definition behind the record and, with it, the way the record is processed - ext for a document whose uploaded main file is the document itself, edoc for one generated from a definition template, folder for a folder.

Example:

"ext"

deletionInfo
object | null

Soft-deletion record as it stood at this revision - whether the record sat in the trash then, and who had moved it there and when.

documentCategory
string | null

Category the document is filed under, used for filtering and reporting. The available categories come from the documentCategories setting.

Example:

"Contract"

documentId
string | null

Identifier of the document this snapshot was taken from. A revision's own identifier is a separate value and cannot be derived from it - a particular version is found by this field together with revision.

Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

documentTitle
string | null

Title of the document, or the name of the folder. It also serves as the file name on download and export, and is sanitized so that it can be used as one.

Example:

"Contract Agreement"

documentType
string | null

Identifier of the metadata definition the record belongs to, which determines its structure and the definition-specific fields it carries. A folder record always carries folder here.

Example:

"d_default"

enumSelections
object[] | null

Selections made in the list fields of the document's metadata definition, one record per field.

expiresOn
string<date-time> | null

Expiration date of the document as it stood at this revision; the document stays valid for the whole of that day.

Example:

"2026-12-31T00:00:00.000Z"

extractionLanguage
string | null

Language detected in the text extracted from the document's main file.

Example:

"en"

extractionOcr
string | null

Text recovered from the document's main file by optical character recognition, indexed for full-text search.

extractionStatus
string | null

Progress of the text extraction run over the document's main file.

Example:

"finished"

extractionText
string | null

Full text extracted from the document's main file, indexed for full-text search. For a generated document it is the rendered HTML stripped of its markup.

file
object[] | null

Files attached to the document next to its main file.

folder
object[] | null

Placements of the record in the folder trees, one entry per tree it is filed in.

html
string | null

Rendered HTML body of a generated (edoc) document. It is the source the document's main file is rendered from, and the source of its extracted text.

info
object | null

Who took this snapshot and when.

isAnnotated
boolean | null

Whether annotations, images or submitted files have been written into the document's main file.

isFolder
boolean | null

Whether the record is a folder rather than a document - both are stored in the same index.

isSigned
boolean | null

Whether the document's main file carries at least one signature, including signatures that were already present in an uploaded file.

isSignedInternally
boolean | null

Whether at least one of the signatures or seals on the document's main file was produced by this platform.

lastModified
string<date-time> | null

Date and time when the record was last modified.

lastSeen
object[] | null

When each user last opened the record, one entry per user.

organization
string | null

Identifier of the organization the document belongs to, taken from its creator. It is absent for a creator outside any organization, and it governs which settings apply to the document and who may see its attachments.

Example:

"d0a72e51-728e-4a1d-9a5c-13796122b6f8"

pdfFile
object | null

Main file of the document as it stood at this revision, the one shown in the viewer. Despite the field name it does not have to be a PDF.

preparationDraft
object | null

Signing setup prepared on the document and kept for later - the participants, their sign fields and the signature options, none of which has been sent out yet.

readBy
string[] | null

Usernames of the users who have read the document. The list is emptied whenever the document should show up as unread again, such as when a new action is requested on it.

revision
integer | null

Number this snapshot carries - the revision the document stood at when it was taken. It is what a comparison and a restore name.

rights
object | null

Internal read and edit permissions on the record, evaluated alongside the caller's rights for the document type.

shareSettings
object | null

Share configuration the document was last shared with - recipient permissions, protection factors, expiration and reminders.

showBarcode
boolean | null

Whether the document's barcode is displayed to the user.

signatureChecksums
string[] | null

Digests of the signatures this platform applied to the document's main file, one per signing operation. They identify the document from an uploaded copy of the file and reveal whether that copy was altered.

signatureComponents
object[] | null

Signatures, seals and timestamps already applied to the document, with their certificate and validation details.

signatureProvider
string | null

Provider that produces the signatures on the document. It is resolved from the signer's settings on the first signature and cannot be changed afterwards.

Example:

"internal"

signatureType
string | null

Whether the document is signed with real cryptographic signatures or with image-only visual ones. It is decided on the first signature and cannot be changed afterwards.

signFields
object[] | null

Fields placed on the pages of the document's main file for its participants to fill - signatures, initials, stamps, text inputs and other annotations.

sourceTemplate
object | null

Template the document was created from, as recorded at its creation. A revert does not take it from the snapshot - the document keeps the one it has.

star
string[] | null

Usernames of the users who marked the record as a favourite.

submittedFiles
object[] | null

Files uploaded into the document by its participants through its submitted-file fields.

subscriptions
object | null

Users subscribed to the document's events, listed per event.

tags
object[] | null

Tags attached to the record, grouped into one entry per tag owner - the shared set and each user's private one.

term
object | null

Expiration reminders, contract renewal or non-fixed notice terms of the document as they stood at this revision.

termType
enum<string> | null

Kind of term the document had at this revision. It is absent when the document had neither an expiration date nor a non-fixed term.

  • fixed_term: The document expires on a set date and its contract is renewed, automatically or by hand.
  • expiry_only: The document expires on a set date and nothing renews it.
  • non_fixed_term: The contract runs until it is terminated. The document expires only once a termination has started, the notice period after it.
Available options:
fixed_term,
expiry_only,
non_fixed_term,
null
thumbnails
string | null

Hash of the stored preview image rendered from the document's main file. It is dropped whenever that file changes and generated again afterwards.

Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

tsaType
string | null

Which trusted timestamps are applied to the document - one embedded in each signature, a standalone document timestamp, both, or none.

Example:

"signatureOnly"

usePdfA
boolean | null

Whether the document's main file is kept PDF/A compliant when it is signed or re-rendered. Once turned on it stays on.

workflow
object[] | null

The workflow running on the document - the state it sits in, the participants it waits for and the history recorded so far.

{key}
any

Additional properties