Documents

Documents and versions

Store documents as immutable versions and keep track of every processing result.

Documents and versions

Every feature works on documents stored in your workspace. A document keeps all of its versions, and links, viewer sessions, analytics, forms and workflows all refer to the same document.

Create and process

  • Create a document with POST /api/v2/documents or an SDK; the response contains the document and its first version.
  • Process it with POST /api/v2/document-operations on an exact versionId; a completed operation stores its output as a new version.
  • Store your own identifier together with the returned document, version and operation IDs.
  • Do not use the retired /api/v1 API; every request to it returns 410.

Identifiers to store

IDWhat it identifiesUse it for
Document IDA document in one organisation, workspace and environmentEvery later read and change of the document
Version IDOne immutable state of the document's contentProcessing, links, forms, annotations, analytics and signatures
Operation IDOne processing runIts state, errors, output version and Support
Reference IDOne API request (X-Wellfriend-Reference-Id)Support requests and your own logs

Processing creates new versions

An operation reads one exact version and stores its result as a new version; it never changes a version in place. Your integration works with documents and versions, not with temporary job files.