Prepare Document
prepare_documentPlace signature, initials, date, and printed-name fields on an untagged PDF. Provide document_base64 or an https document_url (max 10MB). Optional signers hints: [{"name", "email", "role", "order"}]. Until the user has approved one preview, every call returns status preview with confidence, reasons, fields, pages, and prepare_id, and no PDF. pages lists each page's visible area (x, y, width, height) in the same coordinates a field position uses. Show it to the user, then call again with that prepare_id and approve true to get pdf_base64. A prepare_id expires 15 minutes after the preview; approve within that window or call prepare_document again. After that first approval, a call returns status ready and pdf_base64 when confidence is at least 0.85, and a preview otherwise. Creates no envelope and charges no credit. Radio and checkbox are not placed. A filled form field that is not a zSign tag is a 422 with code filled_form_field. Encrypted PDFs are refused. Flatten or clear filled form fields first, since zSign may not catch every one. An encrypted PDF is a 422 with code pdf_encrypted. An expired prepare_id is a 404 with code prepare_expired. An unknown prepare_id is a 404 with code prepare_not_found. Requires Authorization: Bearer zs_....
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prepare_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| approve | No | ||
| signers | No | ||
| prepare_id | No | ||
| document_url | No | ||
| document_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |