Hanzo
OpenapiDataroom

Grant answers a request by opening access: it mints a share link over what was…

Grant answers a request by opening access: it mints a share link over what was asked for, addressed to the address that asked and closing at expiry,…

POST /v1/dataroom/trust/requests/{id}/grant

Addresshttps://api.hanzo.ai/v1/dataroom/trust/requests/{id}/grant
MethodPOST
Operationpost_dataroom_trust_requests_by_id_grant
AuthAuthorization: Bearer $HANZO_API_KEY

Grant answers a request by opening access: it mints a share link over what was asked for, addressed to the address that asked and closing at expiry, records the decision, and mails the asker.

The link is NEVER a public URL. It carries the asker's address on its allow list, so forwarding it to somebody else does not open it, and it expires. What the party then does with it — which document, which page, for how long — is recorded by the data room's own view tracking, which is where the access record for this release lives; there is no second log.

A request that was already answered is refused rather than answered twice, so a second click cannot mint a second link. Only an admin of the org may call it, and the request is resolved in that org's own store, so another org's request id is not found — which is also what stops one org deciding another's queue.

Mail is best effort and the grant does not depend on it: a deployment that sends no mail still records the grant and says so in delivery, so the approver knows to pass the address on themselves.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the request to answer, taken from the path.
daysbodyintegerDays is how long the grant stays open, from now.
idbodystringID is the request to answer, taken from the path.
notebodystringNote is why.

Response

StatusBodyMeaning
200trustGrantedok

200 body — 4 fields.

FieldInTypeAlwaysDescription
deliverybodystringDelivery is empty when the asker was mailed, and otherwise says what happened instead — so an approver is never left believing a mail went out that did not.
expiresAtbodyintegerExpiresAt is when the grant closes, in unix milliseconds.
linkbodystringLink is the share link's id.
statebodystringState is "granted".

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Dataroom API · All Hanzo APIs · Interactive reference

How is this guide?

On this page