The document object is a PDF or DOCX file inside an envelope: its source URL, format, template data, places and fixed positions, plus size and page limits.
A document is a PDF or DOCX file within an envelope. Each envelope can contain between 1 and 10 documents. Recipients sign, approve, or prepare documents during their ceremony.
Documents are defined inside the documents array when creating an envelope. They are not created or updated independently.
SignatureAPI supports two document formats. The format property is optional and defaults to pdf, so a PDF document can leave it out. Set format to docx for Word files.
PDF (format: "pdf") accepts standard PDF files. Place fields using placeholders embedded in the document text or fixed coordinates on a page.
DOCX (format: "docx") accepts Microsoft Word files. In addition to places, DOCX documents support template fields that merge dynamic data into the document before signing begins.
If you upload a DOCX file but omit format or set it to "pdf", the API returns a cannot-parse-document error. Always set format: "docx" for Word files.
DOCX files created with Google Docs or LibreOffice may not be compatible. If you get a cannot-parse-document error, open the file in Microsoft Word and re-save it. This resolves most compatibility issues.
Set the url property to an HTTPS URL for the file. SignatureAPI downloads the file when the envelope is created.
The URL must come from a supported host, such as Amazon S3, Google Cloud Storage, Azure Blob Storage or Cloudflare R2. You can also upload the file to SignatureAPI and use the URL it returns, or use an upload URL for files over 4.5 MB.
The document is generated from your data for each envelope: names, dates or amounts
Put {{key}} fields in a DOCX file, set format to docx and send the values in the document's data property. SignatureAPI merges them before signing begins.
The file is on your server, for this envelope only
Send the file's bytes with POST /v1/uploads and use the returned url as the document url. This takes files up to 4.5 MB (4,500,000 bytes). For larger files, up to your account's maximum document size (10 MiB, 10,485,760 bytes, by default), request an upload URL with POST /v1/upload-urls and PUT the bytes to it. API uploads are deleted 24 hours after creation.
These limits apply to every document, whether it comes from a supported host or an upload. They are your account’s defaults; to raise one, contact support.
SignatureAPI counts the bytes it downloads: a file of exactly 10 MiB (10,485,760 bytes) is accepted, one byte more is refused. A file sent through Create Upload has a lower size limit of 4.5 MB (4,500,000 bytes) per request. For a larger file, create an upload URL instead.
Places are areas in a document where recipients interact or where information is displayed automatically. Input places include signatures, initials, text inputs, checkboxes, and dropdowns. Informational places include static text, completion dates, and recipient details.
Define places in the places array. Each place has a key and a type.
A place must be positioned in the document. There are two methods.
Placeholders: Embed [[place_key]] in the document text. The place appears at that location. This works for both PDF and DOCX documents.
Fixed positions: Specify the page, top, and left values in the fixed_positions array. Coordinates are measured in points (1 point = 1/72 inch) from the top-left corner of the page.
A user-provided identifier for this document within the envelope. Must be unique within the envelope. Use the key to reference this document in other parts of the API.
Only lowercase letters, numbers, and underscores are allowed. Must start with a letter.
If not provided, a key is generated automatically.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "agreement"
Template data used to fill dynamic fields in a DOCX template. Each key corresponds to a {{key}}placeholder in the template file.
Keys must be alphanumeric and at most 32 characters. Values can be strings, booleans, or nested objects. Nested keys map to dot-notation placeholders (e.g., a key person with nested key name fills {{person.name}}).
Example {"day":"31","month":"December","year":"2025","explorer":{"name":"Jeff Spender","company":"ACME, Inc"}}
A list of coordinate-based positions that place fields at exact locations on document pages. Each entry maps a place_key to a specific page and coordinate.
Use fixed positions as an alternative to embedding [[place_key]] placeholders in the document text.
The vertical distance from the top edge of the page to the bottom-left corner of the place. Measured in points (1/72 of an inch). Decimal values are allowed.
The horizontal distance from the left edge of the page to the bottom-left corner of the place. Measured in points (1/72 of an inch). Decimal values are allowed.
The key of the place to position. Must match the key of a place in the document's places array. For a radio_group, position each option individually with a group_key:option_value key (for example billing_cycle:monthly), where option_value matches the value of one of the group's options.
place_key takes one of these forms:
ShowPlace keya place key
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
ShowRadio group member keya group_key:option_value key
The key of a single positioned radio_group option. Each option expands into its own place row keyed group_key:option_value (for example billing_cycle:monthly).
1 to 63 characterspattern ^[a-z][a-z0-9_]*(:[a-z0-9_]+)?$Example "billing_cycle:monthly"
The places attached to this document. Places are interactive fields or informational elements positioned on the document pages.
Each place has a type that determines its behavior. Input types include signatures, initials, text inputs, checkboxes, and dropdowns. Informational types include static text, dates, and recipient details.
Places are positioned using either placeholders embedded in the document text or fixed positions specified in the fixed_positions array.
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
The date and time format string using Moment.js syntax. Common formats include D MMM YYYY (31 Dec 2025), YYYY-MM-DD (2025-12-31), MM/DD/YYYY (12/31/2025), and MMMM D, YYYY (December 31, 2025). You can include time with DD/MM/YYYY HH:mm.
The font size in points for a text-based place. One point equals 1/72 of an inch.
minimum 1maximum 144Example 12
ShowEnvelope completed date placetype: envelope_completed_date
An envelope completed date place displays the date and time when the envelope was completed. The envelope is completed when all recipients have finished their actions.
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
The date and time format string using Moment.js syntax. Common formats include D MMM YYYY (31 Dec 2025), YYYY-MM-DD (2025-12-31), MM/DD/YYYY (12/31/2025), and MMMM D, YYYY (December 31, 2025). You can include time with DD/MM/YYYY HH:mm.
The font size in points for a text-based place. One point equals 1/72 of an inch.
minimum 1maximum 144Example 12
ShowRecipient name placetype: recipient_name
A recipient name place displays a recipient's name at a specific location on the document. The name is inserted automatically based on the recipient linked through the recipient_key.
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
The font size in points for a text-based place. One point equals 1/72 of an inch.
minimum 1maximum 144Example 12
ShowRecipient email placetype: recipient_email
A recipient email place displays a recipient's email address at a specific location on the document. The email address is inserted automatically based on the recipient linked through the recipient_key.
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
Whether the recipient must complete this place before finishing their action. When set to required, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the place type. When set to optional, the recipient may skip it.
Placeholder text displayed inside the input field before the recipient types. Disappears when the recipient starts entering text. Set to null for no prompt.
A tooltip displayed to the recipient when they hover over or focus on the place. Use this to provide guidance about what to enter. Set to null for no hint.
1 to 100 charactersExample "Enter your full legal name"
A key that stores the recipient's input in the envelope's captures object. When set, the value entered or selected by the recipient is saved under this key after the envelope is completed. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to null to disable capture.
Read the captured values on the envelope: see Captures.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "customer_email"
Specifies the validation to apply to the text input, such as requiring a specific format (e.g., email, US zipcode), a custom regular expression, or no validation at all.
format takes one of these forms:
ShowPredefined formata predefined format name
A predefined format that must match the input text.
email
zipcode-us
ShowCustom formata regular expression enclosed in /
A regular expression that must match the input text.
1 to 100 characterspattern ^/.*?/$Example "/^[a-z0-9]{1,10}$/"
A message displayed to the recipient when their input does not match the specified format. Use this to explain what format is expected. Set to null to use the default validation message.
1 to 100 charactersExample "Please enter a valid 8-digit reference number"
The width of the input field in points (1 point = 1/72 inch). The field may expand beyond this width during typing.
minimum 30maximum 540Example 200
ShowBoxed text input placetype: boxed_text_input
A boxed text input place displays individual character boxes where a recipient enters text one character per box. This is useful for structured data like verification codes, phone numbers, or ZIP codes.
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
Whether the recipient must complete this place before finishing their action. When set to required, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the place type. When set to optional, the recipient may skip it.
The number of individual character boxes to display. Each box accepts a single character. Common values include 5 (ZIP code), 6 (verification code), and other short business identifiers. Set to null to omit.
A tooltip displayed to the recipient when they hover over or focus on the place. Use this to provide guidance about what to enter. Set to null for no hint.
1 to 100 charactersExample "Enter your full legal name"
A key that stores the recipient's input in the envelope's captures object. When set, the value entered or selected by the recipient is saved under this key after the envelope is completed. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to null to disable capture.
Read the captured values on the envelope: see Captures.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "customer_email"
ShowMulti-line text input placetype: multiline_text_input
A multi-line text input place marks a location on a document where a recipient enters text that spans multiple lines. This is useful for comments, addresses, and longer descriptions.
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
Whether the recipient must complete this place before finishing their action. When set to required, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the place type. When set to optional, the recipient may skip it.
Placeholder text displayed inside the input field before the recipient types. Disappears when the recipient starts entering text. Set to null for no prompt.
A tooltip displayed to the recipient when they hover over or focus on the place. Use this to provide guidance about what to enter. Set to null for no hint.
1 to 100 charactersExample "Enter your full legal name"
A key that stores the recipient's input in the envelope's captures object. When set, the value entered or selected by the recipient is saved under this key after the envelope is completed. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to null to disable capture.
Read the captured values on the envelope: see Captures.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "customer_email"
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
The value captured when the recipient selects this option. If omitted, the label is used as the value.
ShowPredefined optionsa predefined set name
A built-in set of options for the dropdown. world_countries_names provides full country names. world_countries_2_letter_codes and world_countries_3_letter_codes provide ISO country codes. world_countries_numeric_codes provides numeric country codes. us_states_names provides full US state names. us_states_2_letter_codes provides two-letter US state codes.
This property specifies the option that will be selected by default when the place is displayed. Its value is first matched against the label of each item in the options array; if no match is found, it is matched against the value of each item.
If no match is found, a validation error is returned.
Whether the recipient must complete this place before finishing their action. When set to required, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the place type. When set to optional, the recipient may skip it.
A key that stores the recipient's input in the envelope's captures object. When set, the value entered or selected by the recipient is saved under this key after the envelope is completed. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to null to disable capture.
Read the captured values on the envelope: see Captures.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "customer_email"
The width of the dropdown in points (1 point = 1/72 inch). The field may expand to fit its content.
minimum 30maximum 540Example 200
ShowRadio group placetype: radio_group
A radio group place marks the options of a single-choice question scattered across a document, where a recipient selects exactly one option from the group.
The group key shared by every option of the radio group. Combined with an option's value, it forms the group_key:value key that positions that option, through a [[group_key:value]] placeholder or a fixed position (for example billing_cycle:monthly). Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
The set of allowed options in the group. Each option carries a value that is captured under capture_as when that option is selected. Options are positioned individually on the document using a group_key:value key.
The value captured when the recipient selects this option. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
The geometry of the control. circle draws a round radio button. square draws a box, matching documents that print square options. When symbol is fill, the stamped mark takes this shape.
Whether the recipient must complete this place before finishing their action. When set to required, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the place type. When set to optional, the recipient may skip it.
A key that stores the recipient's choice in the envelope's captures object. The captured value is the value of the option the recipient selected, or null if no option is selected. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to null to disable capture.
Read the captured values on the envelope: see Captures.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "customer_email"
A unique identifier for a place within a document. Used to match a place to its position, either through a [[place_key]] placeholder in the document or a fixed position entry. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
A key that stores the recipient's input in the envelope's captures object. When set, the value entered or selected by the recipient is saved under this key after the envelope is completed. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to null to disable capture.
Read the captured values on the envelope: see Captures.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "customer_email"
Whether the recipient must complete this place before finishing their action. When set to required, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the place type. When set to optional, the recipient may skip it.
A user-provided identifier for this document within the envelope. Must be unique within the envelope. Use the key to reference this document in other parts of the API.
Only lowercase letters, numbers, and underscores are allowed. Must start with a letter.
If not provided, a key is generated automatically.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "agreement"
A list of coordinate-based positions that place fields at exact locations on document pages. Each entry maps a place_key to a specific page and coordinate.
The places attached to this document. Places are interactive fields or informational elements positioned on the document pages.
Each place has a type that determines its behavior. Input types include signatures, initials, text inputs, checkboxes, and dropdowns. Informational types include static text, dates, and recipient details.
Places are positioned using either placeholders embedded in the document text or fixed positions specified in the fixed_positions array.
ShowEnvelope completed date placetype: envelope_completed_date
An envelope completed date place displays the date and time when the envelope was completed. The envelope is completed when all recipients have finished their actions.
A recipient name place displays a recipient's name at a specific location on the document. The name is inserted automatically based on the recipient linked through the recipient_key.
A recipient email place displays a recipient's email address at a specific location on the document. The email address is inserted automatically based on the recipient linked through the recipient_key.
A boxed text input place displays individual character boxes where a recipient enters text one character per box. This is useful for structured data like verification codes, phone numbers, or ZIP codes.
ShowMulti-line text input placetype: multiline_text_input
A multi-line text input place marks a location on a document where a recipient enters text that spans multiple lines. This is useful for comments, addresses, and longer descriptions.
A radio group place marks the options of a single-choice question scattered across a document, where a recipient selects exactly one option from the group.