Skip to content

Size Limits

Every value you send to DocSpring has a maximum size. The limits are well above anything a normal integration sends. A request with a value over its limit is rejected with a 422 Unprocessable Content response that names the value and its limit, and nothing is saved:

{
"error": {
"code": "validation_failed",
"message": "Invalid request: /metadata has too many keys (51, the maximum is 50)",
"details": [
{
"code": "json_too_many_keys",
"message": "has too many keys (51, the maximum is 50)",
"pointer": "/metadata"
}
],
"request_id": "req_1234567890abcdef01"
}
}

The request body has a limit of its own, which is checked first: 50 MB to create a submission, 100 MB for a PDF upload, and 10 MB for everything else, batches included. A larger body is rejected with a 413 response and a request_too_large error. Send images as URLs instead of Base64 data.

ValueLimit
Template name512 characters
Template description5,000 characters
Version description500 characters
All of a template’s fields16 MB as JSON
Each name, title and other text in a field’s settings65,536 characters
HTML of an HTML template50 MB
Header HTML, footer HTML and SCSS5 MB each
Allowed embed domains, all together5,000 characters
Webhook URL and redirect URL2,048 characters
PDF password512 characters

16 MB of fields is about 10,000 fields. For a document that needs more, split its pages into several templates, generate a PDF from each one, and combine the PDFs.

Submissions, signature requests and combined PDFs

Section titled “Submissions, signature requests and combined PDFs”
ValueLimit
data of a submission or signature request, Base64 images included128 MB as JSON
metadata of a submission, batch, signature request or combined PDF64 KB as JSON, 50 keys, nested 5 levels deep
field_overrides of a submission1 MB as JSON
html of a submission50 MB
css of a submission5 MB
Signature request name255 characters
Signature request email254 characters
Signature request fields256 KB as JSON
password of a submission or combined PDF512 characters

Metadata counts every key, including the keys of nested objects.

The text that doesn’t fit a submission’s fields, returned as truncated_text, can be up to 2 MB as JSON. A submission with more fails with an error.

ValueLimit
Webhook name512 characters
Webhook URL2,048 characters
Webhook headers64 KB as JSON, 50 headers
Folder name255 characters
API token name512 characters