Records
| Record | Created when | Changes later? |
|---|---|---|
| Document | POST /api/v2/documents stores the file | Keeps one identity in its organisation, workspace and environment |
| Version | An upload or a completed operation stores content | Never: versions are immutable |
| Operation | POST /api/v2/document-operations is accepted | Until it is completed, failed or cancelled |
| Access decision | A protected action is checked | Never: kept as a record of the decision |
| Event | Something changes, such as an operation completing | Never: delivered as a signed webhook to subscribed endpoints |
Keep your own mapping
Store the public IDs Wellfriend returns and map them to your own records; your own record stays the source of truth for your business. An ID alone never grants access: every read stays inside the key's organisation, workspace and environment.
Rules for each state
- Do not process or share a document until the upload has returned its version.
- Do not treat a 202 response as success.
- Do not try to replace a version in place.
- Do not reuse a revoked link or an expired session.
- Keep failed and cancelled as separate states in your own database.
Features use exact versions
Secure links, viewer sessions, annotations, forms, analytics and automations refer to a document and, where the content matters, an exact version. A later upload therefore never changes what a recipient saw or reviewed.