Hanzo
OpenapiEsign

Returns the document — the sealed PDF once it is complete.

Returns the document — the sealed PDF once it is complete. It answers the document's current PDF as base64 with a sealed flag and a filename.

GET /v1/esign/documents/{id}/download

Addresshttps://api.hanzo.ai/v1/esign/documents/{id}/download
MethodGET
Operationget_esign_documents_by_id_download
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the document — the sealed PDF once it is complete.

It answers the document's current PDF as base64 with a sealed flag and a filename. Before completion that is the original upload; once every signer has finished it is the SEALED artifact, with the field values rendered onto the page and a real x509 PKCS#7 digital signature applied. There is one pdfBase64 field either way, so sealed is what tells you which you are holding.

The id is resolved in the caller's OWN tenant store, so another org's document id is a 404.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the document to act on. 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…

Response

StatusBodyMeaning
200esignPDFok

200 body — 5 fields.

FieldInTypeAlwaysDescription
filenamebodystringFilename is the name to save it under, built from the title and marked _signed once it is sealed.
idbodystringID is the document.
pdfBase64bodystringPdfBase64 is the PDF itself, base64-encoded.
sealedbodybooleanSealed is whether this is the SEALED artifact — the field values rendered onto the page and a real x509 PKCS#7 signature applied — rather than the original…
statusbodystringStatus is the document's state at the moment it was read.

Failure carries the platform error shape — see Errors.

Examples

hanzo esign documents download <id>

Esign API · All Hanzo APIs · Interactive reference

How is this guide?

On this page