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/documentsor an SDK; the response contains the document and its first version. - Process it with POST
/api/v2/document-operationson 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/v1API; every request to it returns 410.
Identifiers to store
| ID | What it identifies | Use it for |
|---|---|---|
| Document ID | A document in one organisation, workspace and environment | Every later read and change of the document |
| Version ID | One immutable state of the document's content | Processing, links, forms, annotations, analytics and signatures |
| Operation ID | One processing run | Its state, errors, output version and Support |
| Reference ID | One 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.