"description":"JSON Web Token (JWT HS256) with a payload signed using the API key. <br><b>Ensure that the JWT token is generated on the backend to prevent unauthorized access to your documents</b>.",
"required":true,
"properties":{
"user_email":{
"type":"string",
"required":true,
"description":"Email of the owner of the API signing key - admin user email."
},
"integration_email":{
"type":"string",
"required":false,
"description":"Email of the user to create a template for.",
"example":"signer@example.com"
},
"template_id":{
"type":"number",
"required":false,
"description":"ID of the template to open in the form builder. Optional when `document_urls` are specified."
},
"external_id":{
"type":"string",
"description":"Your application-specific unique string key to identify this template within your app.",
"required":false
},
"folder_name":{
"type":"string",
"description":"The folder name in which the template should be created.",
"required":false
},
"document_urls":{
"type":"array",
"required":false,
"description":"An Array of URLs with PDF files to open in the form builder. Optional when `template_id` is specified.",
"description":"New template name when creating a template with document_urls specified.",
"example":"Integration W-9 Test Form"
},
"extract_fields":{
"type":"boolean",
"required":false,
"description":"Pass `false` to disable automatic PDF form fields extraction. PDF fields are automatically added by default."
}
}
},
"data-host":{
"type":"string",
"required":false,
"description":"DocuSeal host domain name. Only use this attribute if you are using the on-premises DocuSeal installation or docuseal.eu Cloud.",
"example":"yourdomain.com"
},
"data-roles":{
"type":"string",
"required":false,
"description":"Comma separated submitter role names to be used by default in the form.",
"example":"Company,Customer"
},
"data-fields":{
"type":"string",
"doc_type":"array",
"required":false,
"description":"A list of default custom fields with `name` to be added to the document. Should contain an array of field properties as a JSON encoded string.",
"description":"Submitter role name for the field."
},
"default_value":{
"type":"string",
"required":false,
"description":"Default value of the field."
},
"title":{
"type":"string",
"required":false,
"description":"Field title displayed to the user instead of the name, shown on the signing form. Supports Markdown."
},
"description":{
"type":"string",
"required":false,
"description":"Field description displayed on the signing form. Supports Markdown."
},
"width":{
"type":"number",
"required":false,
"description":"Field width in pixels."
},
"height":{
"type":"number",
"required":false,
"description":"Field height in pixels."
},
"format":{
"type":"string",
"required":false,
"description":"Field format. Depends on the field type."
},
"options":{
"type":"array",
"required":false,
"description":"Field options. Required for the select field type."
},
"validation":{
"type":"object",
"required":false,
"description":"Field validation rules.",
"properties":{
"pattern":{
"type":"string",
"required":false,
"description":"Field pattern.",
"example":"^[0-9]{5}$"
},
"message":{
"type":"string",
"required":false,
"description":"Validation error message."
}
}
}
}
}
},
"data-submitters":{
"type":"string",
"doc_type":"array",
"required":false,
"description":"A list of default submitters with `role` name to be added to the document. Should contain an array of field properties as a JSON encoded string.",
"description":"Submitter phone number, formatted according to the E.164 standard."
}
}
}
},
"data-required-fields":{
"type":"string",
"doc_type":"array",
"required":false,
"description":"A list of required default custom fields with `name` that should be added to the document. Should contain an array of field properties as a JSON encoded string.",
"description":"Comma separated list of formats to be used for the date field. Formats may include date ('YYYY', 'MM', 'DD'), time ('HH', 'hh', 'mm', 'ss', 'A') and timezone ('z') parts. The first format in the list is used as the default.",
"description":"Set `true` to display a separate \"Custom\" fields tab in the fields list. Custom fields can be configured using the `data-fields` or `data-required-fields` attribute."
"description":"Set to `true` to enable Signature ID by default for newly added fields. If set to `false`, the Signature ID toggle will be displayed under field settings, with the Signature ID turned off by default."
"description":"Allow to add fields only defined in the `data-fields` attribute."
},
"data-autosave":{
"type":"boolean",
"required":false,
"default":true,
"description":"Set `false` to disable form changes autosaving."
},
"data-i18n":{
"type":"string",
"required":false,
"default":"{}",
"description":"JSON encoded string that contains i18n keys to replace the default UI text with custom values. See <a href=\"https://github.com/docusealco/docuseal/blob/master/app/javascript/template_builder/i18n.js\" class=\"link\" target=\"_blank\" rel=\"nofollow\">template_builder/i18n.js</a> for available i18n keys."