Create template from document or document group
create_templateConverts an existing document or document group into a reusable template for future signing processes.
Instructions
Convert an existing document or document group into a reusable template
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_id": "<entity_id>",
"template_name": "<template_name>"
},
"name": "create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ID of the document or document group to convert into a template | |
| entity_type | No | Type of entity: 'document' or 'document_group'. Omit to auto-detect (tries document_group first, then document). Pass explicitly to save one API call. | |
| template_name | Yes | Name for the new template |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_type | Yes | Entity type that was converted. | |
| template_id | No | ID of the created template. None for the document_group path — SignNow processes document group templates asynchronously (202 Accepted). Use list_all_templates after a short delay to find the template group. | |
| template_name | Yes | Requested name for the template. |