Preview letter proof
preview_letterCreate a proof of a letter without charging or mailing it. No account is needed. Returns proof_url (a PDF of exactly what will be printed), the USPS address check on the recipient as to_deliverability, the exact price as price_cents (paid by card, for this one letter), and a draft_id. Calling send_letter with that draft_id returns the page where the user pays for exactly this proof at exactly that price, so reviewing the proof and price with the user first avoids mistakes on a paid, irreversible send. The letter is typed text (body_text); US addresses only. Priced at our cost and paid by card, one letter at a time: from $1.51 for a first-class letter, $8.83 certified, $11.83 certified with an electronic return receipt, and $14.42 certified with a green-card return receipt; extra pages and color are priced at our cost.
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": {
"to": "<to>",
"from": "<from>",
"body_text": "<body_text>"
},
"name": "preview_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| color | No | ||
| body_text | Yes | Plain text of the letter, rendered to a letter-sized PDF server-side. | |
| double_sided | No | ||
| extra_service | No | `certified`: USPS Certified Mail (tracking + proof of mailing). `certified_return_receipt`: adds the physical green card (PS Form 3811) signed on delivery and mailed back to the `from` address. `certified_return_receipt_electronic`: adds a PDF of the delivery signature instead of the physical card (cheaper). |