Send From Template
send_from_templateCreate and immediately send a new envelope from a saved template. Get template_id and roles from list_templates. Supply at least one recipient, e.g. [{"name": "...", "email": "...", "role": "signer"}], covering the template's field roles. Use role_mapping to rename template roles to recipient roles, e.g. {"customer": "client"}; unmapped roles stay unchanged. Use send_envelope for new PDF files, send_draft for an existing draft, or add_document_to_draft(template_id=...) to append to an existing draft without sending.
The template is unchanged. A successful send normally costs 1 credit
and sends invitations unless send_invite=false. Set
send_completion_email=false separately to suppress signer completion
emails. sequential defaults true (one at a time). prefill =
{"party:name": "text"} overrides text defaults for this send only.
metadata.revision_of may name a changes-requested source document_id for
its one-time free resend while the promotion is enabled.
If sending fails after the draft is created, the error includes draft_id.
The draft does not store recipients or send options. To retry without
creating a second draft, call send_draft with document_id=draft_id and
supply recipients and any send options again. Requires envelopes:send
access.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": {
"template_id": "<template_id>",
"recipients": "<recipients>"
},
"name": "send_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| prefill | No | ||
| metadata | No | ||
| recipients | Yes | ||
| sequential | No | ||
| send_invite | No | ||
| template_id | Yes | ||
| role_mapping | No | ||
| send_completion_email | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |