The file of the current version (tenant:dms:read)
GET /api/dms/v1/documents/{id}/content
Module: DMS · operationId: getDocumentContent · Tag: Documents · Auth: access token (Authorization: Bearer <accessToken>)
Streams the stored file with its MIME type, inline by default, as attachment with
download=true (audited as VIEW or DOWNLOAD). Encrypted documents are always served as
attachment with Content-Type: application/octet-stream and X-Encryption-Algorithm: AES-256-GCM; decrypt them with the envelope from getDocumentEncryption. Infected files
answer 403 with code: infected; encrypted documents without a key for the caller answer
403; a file the malware scan has not cleared yet answers 409 with code: not_scanned.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
download |
query | boolean | true serves the file as attachment (default false) |
Responses
- 200 The stored file with its MIME type (
*/*) - 403 Error (
application/json) - 404 Error (
application/json) - 409 Error (
application/json) - 503 Error (
application/json)
Example request
curl -X GET 'https://api.mbcom.cloud/api/dms/v1/documents/3f2b8c1e-7d4a-4e9b-9c2a-5b1d6e8f0a12/content' \
-H "Authorization: Bearer $ACCESS_TOKEN"