Delete Draft
delete_draftDelete an unsent Draft entirely: the envelope, its documents, and the
stored PDF bytes. Wraps DELETE /api/v1/documents/drafts/{document_id}.
Use when a draft is abandoned -- there is no archive. Sent and completed
envelopes cannot be deleted (use void_envelope on a live send instead);
on one of those this returns the same 404 as a draft that never existed.
Requires Authorization: Bearer zs_....
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": {
"document_id": "<document_id>"
},
"name": "delete_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |