Hanzo
OpenapiEsign

Fills in one of your fields.

Fills in one of your fields. It records a value for one field and marks it inserted.

POST /v1/esign/o/{org}/sign/{token}/fields/{fieldId}

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

Fills in one of your fields.

It records a value for one field and marks it inserted. A signature field takes a value with isBase64 true for drawn image bytes, or false for a typed signature; a date, name or email field falls back to today, the recipient's name or their email when the value is omitted; any other type requires one.

Nothing is sealed here — filling every field still leaves the document pending until the completion call. The token is the whole credential and it bounds what can be written: a field belonging to another recipient is refused with 401 even under a valid token, an unknown field is a 404, and a field already filled is a 409. A document not out for signature is a 409, as is a recipient who has already completed or rejected. Under SEQUENTIAL order a signer whose turn has not come is refused 403 until every earlier signer has signed. Each insertion is recorded on the audit trail.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
orgpathstringyes
tokenpathstringyes
fieldIdpathstringyes
isBase64bodyanyIsBase64 marks Value as drawn signature image bytes rather than a typed signature.
valuebodyanyValue is what goes in the field. A signature takes the drawn image bytes or a typed name; a DATE, NAME or EMAIL field falls back to today, the recipient's name…

Response

StatusBodyMeaning
200esignInsertionok

200 body — 2 fields.

FieldInTypeAlwaysDescription
fieldIdbodystringFieldID is the field that was filled.
insertedbodybooleanInserted is true — the field now holds a value.

Failure carries the platform error shape — see Errors.

Examples

hanzo esign o sign fields add <org> <token> <fieldId>

Esign API · All Hanzo APIs · Interactive reference

How is this guide?

On this page