メインコンテンツまでスキップ

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

MethodPathDescriptionScope
POST/apiv2/pub/documents/uploadUpload a new documentdocuments_write
GET/apiv2/pub/documents/{doc_id}Get document metadatadocuments_read
POST/apiv2/pub/documents/{doc_id}/versionsUpload a new file versiondocuments_write
GET/apiv2/pub/documents/{doc_id}/downloadStream file downloaddocuments_read
GET/apiv3/pub/documents/{docID}/download-urlGet a presigned S3 download URLdocuments_read
GET/apiv3/pub/documents/{docID}/versionsGet current file + archive historydocuments_read
PATCH/apiv3/pub/documents/{docID}Update document metadata fieldsdocuments_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.