Documents
Upload, download, and manage document metadata and file versions.
Documents in Docwize consist of a metadata record (description, type, status, dates, etc.) and one or more linked files (the actual file content). Each time a new version is uploaded, the previous file is archived.
Endpoints
| Method | Path | Description | Scope |
|---|---|---|---|
| POST | /apiv2/pub/documents/upload | Upload a new document | documents_write |
| GET | /apiv2/pub/documents/{doc_id} | Get document metadata | documents_read |
| POST | /apiv2/pub/documents/{doc_id}/versions | Upload a new file version | documents_write |
| GET | /apiv2/pub/documents/{doc_id}/download | Stream file download | documents_read |
| GET | /apiv3/pub/documents/{docID}/download-url | Get a presigned S3 download URL | documents_read |
| GET | /apiv3/pub/documents/{docID}/versions | Get current file + archive history | documents_read |
| PATCH | /apiv3/pub/documents/{docID} | Update document metadata fields | documents_write |
Endpoints at /apiv2/ and /apiv3/ are both accessed through the same base domain. The path prefix is part of the URL — use the exact path shown for each endpoint.