Download Signed Document
download_signed_documentDownload the sealed, signed PDF. Takes the completed_document_id from
get_envelope_status; the original document_id also works and resolves to
that document's most recent completed session. Returns the bytes as
content_base64 with content_type from the HTTP response. PDF
responses also include pdf_base64 (same bytes). MCP clients truncate
large tool responses, so for anything beyond a page or two prefer
download_url: a short-lived bearer URL (valid until
download_url_expires_at) that serves the same bytes with no
Authorization header — pass it to the user or fetch it directly.
Requires Authorization: Bearer zs_....
document_id: one of `documents[].id` from get_envelope_status to download
just that document (its pages plus the certificate pages — an extract;
the certificate hash identifies the full envelope). `format='pdf'` (the
default) returns the combined signed PDF; `format='zip'`: every document
as its own PDF in one archive (`application/zip`).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": {
"completed_document_id": "<completed_document_id>"
},
"name": "download_signed_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| document_id | No | ||
| completed_document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |