Hanzo
OpenapiDataroom

Read a document's bytes as an authorised link visitor

Streams a document's bytes under its recorded content type to a visitor holding an open viewing session.

GET /v1/dataroom/view/{linkId}/document/{documentId}/file

Addresshttps://api.hanzo.ai/v1/dataroom/view/{linkId}/document/{documentId}/file
MethodGET
Operationget_dataroom_view_by_linkid_document_by_documentid_file
AuthAuthorization: Bearer $HANZO_API_KEY

Streams a document's bytes under its recorded content type to a visitor holding an open viewing session.

No principal: ?viewId= from the authenticate step is the authorisation and must belong to this link, or the call is 403 — holding the link id alone gets no bytes. The document must be reachable THROUGH this link (a member of the room the link opens, or the single document the link names), so a visitor cannot walk to an unrelated document by guessing an id; anything else is a 404, as is an unknown or archived link. Bytes that cannot be fetched from object storage are 502.

?download=1 additionally requires the link's allowDownload and is 403 when the owner did not permit it. Read that flag precisely: it gates the DOWNLOAD intent, not access to the bytes — without the parameter an authorised visitor is served the file for in-place viewing whether or not downloads are allowed.

Request

2 fields.

FieldInTypeRequiredDescription
linkIdpathstringyes
documentIdpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo dataroom view document file <linkId> <documentId>

Dataroom API · All Hanzo APIs · Interactive reference

How is this guide?

On this page