Hanzo
OpenapiDataroom

Reads one of the caller org's documents — its name, opaque storage key, content…

Reads one of the caller org's documents — its name, opaque storage key, content type, page count, size and timestamps.

GET /v1/dataroom/documents/{id}

Addresshttps://api.hanzo.ai/v1/dataroom/documents/{id}
MethodGET
Operationget_dataroom_documents_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Reads one of the caller org's documents — its name, opaque storage key, content type, page count, size and timestamps.

The lookup runs in the caller's own tenant store, so an id belonging to another org is not found exactly like one that never existed. Metadata only: the bytes are a separate read.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the document to read. It is the path segment: the URL is the addressing authority, and the org it is resolved in comes from the caller's principal, so an…

Response

StatusBodyMeaning
200dataroomDocumentOneok

200 body — 10 fields.

FieldInTypeAlwaysDescription
documentbodydataroomDocument
document.contentTypebodystringContentType is the mime type recorded at upload, null when none was sent.
document.createdAtbodyintegerCreatedAt is when the document was uploaded, in unix milliseconds.
document.fileKeybodystringFileKey is the opaque object-storage key the bytes are stored under.
document.fileSizebodyintegerFileSize is the stored byte count, null when it was not recorded.
document.idbodystringID is the document id.
document.namebodystringName is the document's display name.
document.numPagesbodyintegerNumPages is the page count, null when it was not supplied at upload.
document.typebodystringType is the document's kind, null when it was not recorded.
document.updatedAtbodyintegerUpdatedAt is when the document row last changed, in unix milliseconds.

Failure carries the platform error shape — see Errors.

Examples

hanzo dataroom documents get <id>

Dataroom API · All Hanzo APIs · Interactive reference

How is this guide?

On this page