Send a letter in one step
send_letterCreates an order in one call from a PDF (pdf_base64 and filename) or a typed letter (letter), a destination or recipient_id, the sender's US return address, a spending cap and an idempotency key. Checks the address, prices the letter and creates the order. Returns the order status, the price, the standardized address, preview_url, and checkout_url or payment_url. Optional certified adds USPS Certified Mail. With a standing permission inside its limits, the letter goes to print at once. Above the spending cap nothing is ordered. The same key with the same request returns the same order.
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": {
"sender": "<sender>",
"max_amount_cents": "<max_amount_cents>",
"idempotency_key": "<idempotency_key>"
},
"name": "send_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| duplex | No | ||
| letter | No | ||
| sender | Yes | ||
| filename | No | ||
| certified | No | ||
| mandate_id | No | ||
| pdf_base64 | No | ||
| destination | No | ||
| recipient_id | No | ||
| mandate_token | No | ||
| payment_method | No | ||
| idempotency_key | Yes | ||
| max_amount_cents | Yes |