Hanzo
OpenapiEsign

Adds someone to a draft and mints their signing token.

Adds someone to a draft and mints their signing token.

POST /v1/esign/documents/{id}/recipients

Addresshttps://api.hanzo.ai/v1/esign/documents/{id}/recipients
MethodPOST
Operationpost_esign_documents_by_id_recipients
AuthAuthorization: Bearer $HANZO_API_KEY

Adds someone to a draft and mints their signing token.

It answers 201 with the recipient's id and their signing TOKEN — the crypto-random capability that is the only credential the signer's door accepts — so this response is where the signing link is built from. A CC recipient is recorded as already complete, because they are never asked to sign.

Only while DRAFT: adding a recipient to a document already sent is a 409, because the field layout and the turn order were fixed when it went out. An unknown document is a 404. The addition is recorded on the audit trail.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
emailbodyanyEmail is where the signing link is meant to go, lower-cased on the way in.
namebodyanyName is the recipient's display name, also the fallback a NAME field is filled with when they leave it blank.
rolebodyanyRole is SIGNER (the default), CC, VIEWER, APPROVER or ASSISTANT; anything else reads as SIGNER.
signingOrderbodyanySigningOrder is this recipient's position when the document is SEQUENTIAL — lower signs first, and ties fall back to the order they were added.

Response

StatusBodyMeaning
201esignInvitecreated

201 body — 5 fields.

FieldInTypeAlwaysDescription
emailbodystringEmail is the address the invitation is for, lower-cased.
idbodystringID is the new recipient's id, which is what a field is placed against.
namebodystringName is the recipient's display name, empty when none was given.
rolebodystringRole is the role they were recorded with — SIGNER unless another was asked for.
tokenbodystringToken is the crypto-random signing capability for this recipient.

Failure carries the platform error shape — see Errors.

Examples

hanzo esign documents recipients <id>

Esign API · All Hanzo APIs · Interactive reference

How is this guide?

On this page