Skip to content
Start free

Field Names

Open in ClaudeOpen in ChatGPT

DocSpring uses the JSON Pointer syntax for field names. This means that you can describe the shape of your API by using a forward slash (/) to define object keys and array indexes. (Object keys and array indexes use the same syntax.)

Please note that field names are case sensitive. firstName and firstname will be treated as two separate fields.

To control line spacing and indentation, you can create multiple fields with the same name, and append #n to the field name, where n is the line index.

In the following example, extension_reason is a single field in the API request, but the text will automatically wrap across lines 0 to 5.

Multiline field names Multiline checkbox option

You can use the same field name more than once. For example, some forms have separate fields for month, day, and year. You can configure three fields that all share the name date, but use different format strings for each field: %-m for month, %-d for day, and %Y for year.

Day, month, year fields

Now you can send a single date value in your API request, and we will show a date picker on the online form.

DocSpring supports the following special field names:

This field will display a URL where the submission data can be viewed or downloaded. This URL can be displayed as a QR code on the PDF.

You can append .json, .xml, .csv, and .xlsx to the URL to download your data in various formats.

The version of the template that was used to create this submission, e.g. 1.2.3. This will be draft when generating a submission from an unpublished draft template.

The date when this submission was created.

The date and time when this submission was created.

Each of these fields prints in its own Format when it has one. Without one, @@date prints in the template’s default date format, and @@datetime and the signature request dates below print the date and the time: the template’s default date and time format if you have changed it, or otherwise its date format followed by the hour and minute, such as 11/16/2026 09:25.

These dates and times are in your account’s time zone, which you can set in your account settings, wherever the person filling in or signing the form is. The form shows them as the PDF prints them. Templates created before October 29, 2026, and accounts without a time zone, use the server’s: US Eastern, or DOCSPRING_TIMEZONE on DocSpring Enterprise.

Special Field Names for Signature Requests

Section titled “Special Field Names for Signature Requests”

<index> is the signature request’s sort_order: Signer 1 is 0, Signer 2 is 1, and so on, and a signer role’s key works too: @@signature_requests/tenant/completed_at. In API v1, it’s the request’s position in the data_requests list you sent when you created the submission, starting at 0. A position with no signature request leaves its fields empty.

These names used to start with @@data_requests/. Templates that still use that name keep working.

The date and time that the signature request was completed (e.g. signed)

The date and time that the signature request was most recently viewed before completion.

Given the following API request:

{
"parent_object": {
"nested_object": {
"foo": "bar"
}
},
"array_of_strings": ["a", "b", "c"],
"array_of_objects": [{ "color": "blue" }, { "color": "red" }],
"multiline_field": "This text is so long that we need multiple lines."
}

These field names would have the following values:

Field NameValue
parent_object/nested_object/foo“bar”
array_of_strings/0“a”
array_of_strings/1“b”
array_of_strings/2“c”
array_of_objects/0/color“blue”
array_of_objects/1/color“red”
multiline_field#0“This text is so long that”
multiline_field#1“we need multiple lines.”