Hanzo
OpenapiEsign

Places a field on the page for one recipient to fill.

Places a field on the page for one recipient to fill.

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

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

Places a field on the page for one recipient to fill.

It adds a signature, date, name, email or text box at a page and position for ONE named recipient, and answers 201 with its id. The recipient must belong to this document; one from elsewhere is refused.

Fields are what make a recipient signable: a document cannot be sent while any signing recipient has none. Only while DRAFT — adding a field to a sent document is a 409 — and an unknown document is a 404. The addition is recorded on the audit trail.

Request

9 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
fieldMetabodyanyFieldMeta is your own metadata for this field — a label, a placeholder, a required flag — stored verbatim and handed back on every read of the document.
heightbodyanyHeight is the field's height, defaulting to -1, which means the renderer chooses one when the document is sealed.
pagebodyanyPage is the 1-based page the field sits on, defaulting to 1.
positionXbodyanyPositionX is the field's horizontal position on that page, defaulting to 0.
positionYbodyanyPositionY is the field's vertical position on that page, defaulting to 0.
recipientIdbodyanyRecipientID is who must fill this field.
typebodyanyType is what the field collects: SIGNATURE, FREE_SIGNATURE, INITIALS, NAME, EMAIL, DATE, TEXT, NUMBER, RADIO, CHECKBOX or DROPDOWN.
widthbodyanyWidth is the field's width, defaulting to -1, which means the renderer chooses one when the document is sealed.

Response

StatusBodyMeaning
201esignPlacementcreated

201 body — 4 fields.

FieldInTypeAlwaysDescription
idbodystringID is the new field's id.
pagebodynumberPage is the page it was placed on.
recipientIdbodystringRecipientID is who must fill it.
typebodystringType is what it collects.

Failure carries the platform error shape — see Errors.

Examples

hanzo esign documents fields <id>

Esign API · All Hanzo APIs · Interactive reference

How is this guide?

On this page