Templates API
Manage reusable contract templates with variables.
Base URL:
https://apisign.io/apiCreate Template
Template Variables
Use double curly braces to define variables in your template content:
| Variable Type | Example | Description |
|---|---|---|
| Text | {{company_name}} | Simple text field |
| Signature | {{signature}} | Signature capture field |
| Date | {{effective_date}} | Date picker field |
| Signer Name | {{signer_name}} | Auto-filled with signer's name |
Get Template
List Templates
Update Template
Archive Template
Field Definitions
When creating or updating a template, you can specify field definitions to control how variables behave:
{
"fields": {
"fields": [
{
"name": "company_name",
"type": "text",
"completedBy": "creator"
},
{
"name": "signature",
"type": "signature",
"completedBy": "signer"
},
{
"name": "effective_date",
"type": "date",
"completedBy": "creator"
}
]
}
}
Field Types
| Type | Description |
|---|---|
text | Plain text input |
signature | Signature capture |
initials | Initials capture |
date | Date picker |
email | Email input with validation |
signer_name | Auto-filled with signer's name |
Completed By
| Value | Description |
|---|---|
creator | Filled when creating the contract |
signer | Filled by the signer during signing |