Creates a template that can then be used.
required | Array of objects (SubTemplateRole) An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. |
required | Array of objects (SubFormFieldsPerDocumentBase) The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: Using Form Fields per Document.) NOTE: Fields like text, dropdown, checkbox, radio, and hyperlink have additional required and optional parameters. Check out the list of additional parameters for these field types.
|
files | Array of strings <binary> Use This endpoint requires either files or file_urls[], but not both. |
file_urls | Array of strings Use This endpoint requires either files or file_urls[], but not both. |
allow_reassign | boolean Default: false Allows signers to reassign their signature requests to other signers if set to NOTE: Only available for Premium plan and higher. |
Array of objects (SubAttachment) A list describing the attachments | |
cc_roles | Array of strings The CC roles that must be assigned when using the template to send a signature request |
client_id | string Client id of the app you're using to create this draft. Used to apply the branding and callback url defined for the app. |
object (SubFieldOptions) This allows the requester to specify field options for a signature request. | |
Array of objects (SubFormFieldGroup) Group information for fields defined in | |
Array of objects (SubFormFieldRule) Conditional Logic rules for fields defined in | |
Array of objects (SubMergeField) Add merge fields to the template. Merge fields are placed by the user creating the template and used to pre-fill data by passing values into signature requests with the | |
message | string <= 5000 characters The default template email message. |
object <= 10 items Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request. Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | |
subject | string <= 200 characters The template title (alias). |
test_mode | boolean Default: false Whether this is a test, the signature request created from this draft will not be legally binding if set to |
title | string The title you want to assign to the SignatureRequest. |
use_preexisting_fields | boolean Default: false Enable the detection of predefined PDF fields by setting the |
successful operation
failed_operation
{- "client_id": "37dee8d8440c66d54cfa05d92c160882",
- "title": "Test Template",
- "subject": "Please sign this document",
- "message": "For your approval",
- "signer_roles": [
- {
- "name": "Client",
- "order": 0
}, - {
- "name": "Witness",
- "order": 1
}
], - "cc_roles": [
- "Manager"
], - "merge_fields": [
- {
- "name": "Full Name",
- "type": "text"
}, - {
- "name": "Is Registered?",
- "type": "checkbox"
}
], - "field_options": {
- "date_format": "DD - MM - YYYY"
}, - "form_fields_per_document": [
- {
- "document_index": 0,
- "api_id": "uniqueIdHere_1",
- "name": "",
- "placeholder": "",
- "type": "text",
- "x": 112,
- "y": 328,
- "width": 100,
- "height": 16,
- "required": true,
- "signer": 1,
- "page": 1,
- "validation_type": "numbers_only"
}, - {
- "document_index": 0,
- "api_id": "uniqueIdHere_2",
- "name": "",
- "type": "signature",
- "x": 530,
- "y": 415,
- "width": 120,
- "height": 30,
- "required": true,
- "signer": 0,
- "page": 1
}
], - "test_mode": true
}
{- "template": {
- "template_id": "f57db65d3f933b5316d398057a36176831451a35",
- "title": "Mutual NDA",
- "message": "Please sign this NDA as soon as possible.",
- "updated_at": 1570471067,
- "is_creator": true,
- "is_embedded": false,
- "can_edit": true,
- "metadata": { },
- "is_locked": false,
- "signer_roles": [
- {
- "name": "Outside Vendor",
- "order": 0
}, - {
- "name": "Internal Manager",
- "order": 1
}
], - "cc_roles": [
- {
- "name": "Corporate Attorney"
}
], - "documents": [
- {
- "index": 0,
- "name": "mutual_nda.pdf",
- "field_groups": [
- {
- "name": "group1",
- "rule": "require_1-ormore"
}
], - "form_fields": [
- {
- "api_id": "b65e03_10",
- "name": "DepartmentA",
- "type": "checkbox",
- "signer": "1",
- "x": 117,
- "y": 19,
- "width": 15,
- "height": 15,
- "required": false,
- "group": "group1"
}, - {
- "api_id": "b65e03_11",
- "name": "DepartmentB",
- "type": "checkbox",
- "signer": "2",
- "x": 118,
- "y": 41,
- "width": 15,
- "height": 15,
- "required": false,
- "group": "group1"
}, - {
- "api_id": "0ec7a7_1",
- "name": "VendorName",
- "type": "text",
- "signer": "1",
- "x": 160,
- "y": 141,
- "width": 80,
- "height": 30,
- "required": true,
- "group": null,
- "avg_text_length": {
- "num_lines": 1,
- "num_chars_per_line": 19
}, - "isMultiline": false,
- "originalFontSize": 12,
- "fontFamily": "arial"
}, - {
- "api_id": "0ec7a7_2",
- "name": "VendorTitle",
- "type": "text",
- "signer": "2",
- "x": 160,
- "y": 181,
- "width": 80,
- "height": 30,
- "required": true,
- "group": null,
- "avg_text_length": {
- "num_lines": 1,
- "num_chars_per_line": 19
}, - "isMultiline": false,
- "originalFontSize": 12,
- "fontFamily": "arial"
}, - {
- "api_id": "0ec7a7_3",
- "name": "ManagerName",
- "type": "text",
- "signer": "2",
- "x": 160,
- "y": 221,
- "width": 80,
- "height": 30,
- "required": true,
- "group": null,
- "avg_text_length": {
- "num_lines": 1,
- "num_chars_per_line": 19
}, - "isMultiline": false,
- "originalFontSize": 12,
- "fontFamily": "arial"
}, - {
- "api_id": "0ec7a7_4",
- "name": "ManagerTitle",
- "type": "text",
- "signer": "2",
- "x": 160,
- "y": 251,
- "width": 80,
- "height": 30,
- "required": true,
- "group": null,
- "avg_text_length": {
- "num_lines": 1,
- "num_chars_per_line": 19
}, - "isMultiline": false,
- "originalFontSize": 12,
- "fontFamily": "arial"
}, - {
- "api_id": "0ec7a7_5",
- "name": "DateSigned",
- "type": "date_signed",
- "signer": "1",
- "x": 523,
- "y": 28,
- "width": 105,
- "height": 16,
- "required": true,
- "group": null
}
], - "custom_fields": [
- {
- "name": "Effective Date",
- "type": "text",
- "signer": null,
- "x": 378,
- "y": 36,
- "width": 84,
- "height": 14,
- "required": false,
- "api_id": "78083014-32d8-4b5b-b65e-fe6010f3be64",
- "group": null,
- "avg_text_length": {
- "num_lines": 1,
- "num_chars_per_line": 22
}, - "isMultiline": false,
- "originalFontSize": 12,
- "fontFamily": "arial"
}
]
}
], - "accounts": [
- {
- "account_id": "5008b25c7f67153e57d5a357b1687968068fb465",
- "email_address": "me@dropboxsign.com",
- "is_locked": false,
- "is_paid_hs": true,
- "is_paid_hf": false,
- "quotas": {
- "templates_left": null,
- "documents_left": 3600000,
- "api_signature_requests_left": 0,
- "sms_verifications_left": 300000
}
}
]
}
}