Signature fields are placed on documents within an envelope to define where and how each recipient must interact with the document. This page explains the field types, how a field is owned, placed and styled, and the recipient roles. Envelopes and Envelope Templates use the same fields shape; the API reference lists every property.
type is mandatory and must be one of the values below, in lowercase as written.
| Type | Description |
|---|---|
signature | A standard signature: the recipient can type, draw, upload, or apply a saved signature. |
digitalsignature | A certificate-backed signature requiring a PKI certificate. At most one per recipient (or sign group) per document. Your subscription must include it. |
initial | The recipient's initials rather than a full signature. |
text | Freeform text input. |
name | A name field, pre-populated with the recipient's name where available. |
email | An email field, pre-populated with the recipient's email where available. |
company | A company name. |
title | A job title. |
number | Numeric input. |
date | A date, pre-populated with the signing date where available. |
note | A read-only annotation shown to the recipient during signing. Its text goes in value. |
checkbox | A box the recipient checks or clears. A checked box is reported with the value 1. |
radio | One option of a single-select group. See Styling and behaviour. |
stamp | The recipient applies a stamp image. |
attachment | The recipient uploads a supporting file during the signing session. Your subscription must include attachment fields. |
drawing | Freehand drawing. |
When a recipient signs through the API, the value of a signature, digitalsignature, initial, stamp or drawing field is an image as raw Base64 PNG or JPEG data, without a data: prefix.
Every field answers three questions:
referenceDocumentId points at the documents[].referenceDocumentId of the document the field is placed on.referenceSignerId (a recipient) or referenceSignGroupId (a sign group, any of whose members can complete it). Never both.anchorString or a full set of coordinates; see Placement.Each field also needs a name, unique across the whole envelope, not only within one document. The response echoes the name on each field, so it is how you map a returned field id to the field you sent. isRequired makes the recipient complete the field before they can finish, value pre-fills it, and tooltip gives help text.
Place a field either by anchorString or by the full coordinate set (page, positionX, positionY, width and height together), never both. Coordinates are in pixels measured from the top-left corner of the page.
An anchored field takes the size of the matched text. Anchor matching is case-sensitive and places a field at every occurrence of the text, each named with a numeric suffix (signature_buyer__1, signature_buyer__2, …). Anchors are resolved when the envelope is created, against the PDF a .docx is converted to. See Place Document Fields for practical guidance.
The optional properties object controls how the completed value is rendered and how the field behaves:
fontFamily, fontSize, color, bold, italic, underline and textAlign.placeholder while the field is empty, and fieldTitle, a short label for the field in the signer's navigation panel.isSignedDate fills the field with the date the recipient signed.selectionGroup. The chosen option's selectionValue is what ends up in the document, so make it the answer text a reader should see.regexValidation is a .NET regular expression the recipient's input must match, with regexValidationMessage shown when it doesn't.Example field definitions:
[
{
"type": "signature",
"name": "buyer_signature",
"isRequired": true,
"referenceSignerId": 1,
"referenceDocumentId": 1,
"page": 1,
"positionX": 72,
"positionY": 640,
"width": 200,
"height": 60,
"tooltip": "Sign here to accept the agreement."
},
{
"type": "text",
"name": "buyer_po_number",
"isRequired": false,
"referenceSignerId": 1,
"referenceDocumentId": 1,
"anchorString": "@po_number@",
"properties": {
"fontFamily": "Arial",
"fontSize": 11,
"color": "#1f2937",
"textAlign": "left",
"placeholder": "PO number",
"fieldTitle": "PO number",
"regexValidation": "^PO-[0-9]{6}$",
"regexValidationMessage": "Enter a PO number such as PO-123456."
}
},
{
"type": "radio",
"name": "plan_monthly",
"referenceSignerId": 1,
"referenceDocumentId": 1,
"page": 2, "positionX": 80, "positionY": 300, "width": 16, "height": 16,
"properties": { "selectionGroup": "billing_plan", "selectionValue": "Monthly" }
},
{
"type": "radio",
"name": "plan_annual",
"referenceSignerId": 1,
"referenceDocumentId": 1,
"page": 2, "positionX": 80, "positionY": 330, "width": 16, "height": 16,
"properties": { "selectionGroup": "billing_plan", "selectionValue": "Annual" }
}
]The role on a recipient, or on a sign group, which then governs all its members, determines what they do with the envelope. Roles are lowercase, as written below.
| Role | Description |
|---|---|
signer | Completes every field assigned to them before the envelope can progress. |
inpersonsigner | Signs in person, hosted by a user on your subscription named in hostEmail. The notification goes to that host rather than to the signer, and the host runs the signing session, logged in as that user. Your subscription must include in-person signing. See Host In-Person Signing. |
viewer | Views the documents and can leave comments, but signs nothing. Your subscription must include the viewer role. |
cc | Receives a copy of the completed envelope by email and takes no action. A signer who reassigns their position becomes a cc. |