Hanzo
OpenapiEsign

Finishes your signing — and seals the document if you were the last.

Finishes your signing — and seals the document if you were the last. It marks this recipient as done and answers whether the DOCUMENT sealed with it.

POST /v1/esign/o/{org}/sign/{token}/complete

Addresshttps://api.hanzo.ai/v1/esign/o/{org}/sign/{token}/complete
MethodPOST
Operationpost_esign_o_by_org_sign_by_token_complete
AuthAuthorization: Bearer $HANZO_API_KEY

Finishes your signing — and seals the document if you were the last.

It marks this recipient as done and answers whether the DOCUMENT sealed with it. When every signing recipient has completed, sealing happens right here in the same call: the collected values are rendered onto the PDF, a real x509 PKCS#7 signature is applied, the sealed bytes are stored beside the untouched original, and the document moves to COMPLETED. Until then the answer is the recipient's own completion with the document still pending.

It refuses to complete a half-filled signature: a recipient with any unfilled field is a 400 naming how many remain. A document not out for signature is a 409, as is a recipient who has already completed, and under SEQUENTIAL order a signer out of turn is a 403. The token is the whole credential — no account, and a token that does not resolve under the org segment is a 404. Sealing and completion are one transaction, so a failure anywhere leaves the document exactly as it was.

Request

2 fields.

FieldInTypeRequiredDescription
orgpathstringyes
tokenpathstringyes

Response

StatusBodyMeaning
200esignCompletionok

200 body — 3 fields.

FieldInTypeAlwaysDescription
documentStatusbodystringDocumentStatus is COMPLETED when this was the last signature and the document sealed here, PENDING while others have still to sign.
recipientIdbodystringRecipientID is the recipient who finished.
sealedbodybooleanSealed is whether the document sealed on this call — the field values rendered onto the PDF and a real x509 PKCS#7 signature applied.

Failure carries the platform error shape — see Errors.

Examples

hanzo esign o sign complete <org> <token>

Esign API · All Hanzo APIs · Interactive reference

How is this guide?

On this page