Print and mail a letter
send_letterPrint and mail one envelope (up to 5 A4 pages, black and white) to a Canadian address. IRREVERSIBLE once printed: confirm the recipient and content with the human first unless they pre-authorized it. With a live key the price is debited from credit before anything is created; with a sandbox key nothing is mailed or charged. Retrying with the same idempotency_key returns the original letter and never charges twice.
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": {
"pdf_base64": "<pdf_base64>",
"to": "<to>",
"idempotency_key": "<idempotency_key>"
},
"name": "send_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Canadian destination. address_line1 is the recipient name and street line as it should appear on the envelope. | |
| pdf_base64 | Yes | The letter as an A4 PDF, base64. Max 5 pages, about 3 MB. | |
| document_name | No | ||
| service_level | No | standard | |
| return_address | No | Optional. Printed top-left. Default: 157 Adelaide Street West, Suite 242 | |
| idempotency_key | Yes | Unique per letter; reuse when retrying the same letter. |