Skip to main content
Get the current version 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 whose version is read.

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

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

Query Parameters

version
integer

Version the caller currently holds. When present, the changes recorded since it are examined and hasBreakingChangeForSign is reported; when absent, only the current version is returned.

Required range: x > 0
Example:

6

Response

Returns the current document version, and the signing compatibility of the version supplied by the caller.

hasBreakingChangeForSign
boolean

Whether any change recorded on the document since the version supplied by the caller invalidates a signature prepared against that version - a further signature, a replaced file. It carries no meaning when no version was supplied.

version
integer

Current storage version of the document, used for optimistic concurrency control on writes.

Example:

8