Create letter
create_letterCreates a letter that Deutsche Post delivers on paper, to Germany or 200+ countries; senders can live anywhere. Fits any request to send something by post, including "per Post" or "postalisch". Not for e-mail, fax, parcels or bulk mail. list_senders provides the user's real name, address and past recipients for the draft; an unknown recipient address can be looked up and confirmed by the user. A new sender is saved to the account automatically; save_sender and delete_sender manage saved senders. Charges nothing; unpaid letters are deleted 30 days after their last change. Next: submit_letter_text or submit_letter_pdf.
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": {
"recipient": "<recipient>",
"user_language": "<user_language>"
},
"name": "create_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | Postal address of the sender, used for the return line and the sender block. The sender can live in any country. It is saved in the account for next time. Leave it out to use sender_id or the saved default sender. | |
| deadline | No | Date by which the letter must reach the recipient (YYYY-MM-DD), if the user mentions one. The response then says whether it can be met (delivery_estimate.deadline_warning). | |
| delivery | No | Only for senders in Germany, and the user's choice: 'automatic' (sent by Deutsche Post) or 'self_print' (the user prints the franked PDF and posts it in Germany). Omit it for senders outside Germany; their letters are always sent automatically. | |
| recipient | Yes | Postal address of the recipient in Germany or another country. It is printed in the address window exactly as given and does not belong in the letter text. | |
| sender_id | No | A saved sender from list_senders, instead of sender. Its signature is used. | |
| registered | No | True if the user needs tracking or proof of delivery. Within Germany this is Einschreiben Einwurf (delivery to the letterbox is documented), abroad Einschreiben International (for many countries tracking ends when the letter leaves Germany). Ordinary letters within Germany only get Deutsche Post's basic tracking (sorting centres, no proof of delivery), ordinary letters abroad usually none. | |
| product_code | No | Only for special requests, a product_code from get_price_quote with include_products. Postage is otherwise chosen automatically. | |
| user_language | Yes | Two-letter code of the language the user is writing to you in, e.g. 'en' or 'de'. It can differ from the letter's own language. The preview card, the review page and the e-mails use it. | |
| return_receipt | No | True only if the user needs the recipient's signature on a return receipt. Germany only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Last error of this letter, if any. | |
| pages | No | Number of A4 pages. | |
| price | No | Total price incl. postage and VAT, formatted, e.g. '4,84 €'. | |
| sender | No | Postal address. | |
| status | No | created, preview_ready, awaiting_payment, purchasing, purchased or purchase_unclear. | |
| payment | No | pending, paid, balance, refunded or a test marker. | |
| product | No | Deutsche Post postage product. | |
| delivery | No | 'automatic' (sent by Deutsche Post) or 'self_print' (the user prints and posts it). | |
| tracking | No | Tracking after dispatch. | |
| letter_id | No | Id of the letter, used by all other letter tools. | |
| next_step | No | What to do next. | |
| posted_on | No | Date the letter was posted, YYYY-MM-DD. | |
| recipient | No | Postal address. | |
| sender_id | No | Saved sender used for this letter. | |
| test_mode | No | Set when purchases are simulated (review accounts, test operation). | |
| price_cent | No | Total price in euro cents. | |
| registered | No | Registered mail with tracking. | |
| status_url | No | Status page of the letter. | |
| upload_url | No | URL that accepts the raw PDF via PUT until purchase. | |
| invoice_url | No | Invoice. | |
| preview_url | No | Web page with the whole letter: review and payment before purchase, status after. It is a web page, not an image file. | |
| approval_url | No | Page where the user approves and pays this letter. | |
| delivered_at | No | Delivery time reported by Deutsche Post. | |
| layout_rules | No | Layout rules for submit_letter_pdf. | |
| postage_cent | No | Deutsche Post postage in cents. | |
| product_code | No | Code of the postage product. | |
| link_validity | No | How long the links stay valid. | |
| tracking_note | No | Limits of tracking for the destination. | |
| user_language | No | Language of the user, for pages and e-mails. | |
| letter_pdf_url | No | self_print only: franked PDF to print. | |
| preview_images | No | PNG images of the pages, for showing the letter inline. | |
| return_receipt | No | Registered mail with return receipt. | |
| dispatch_status | No | queued, posted, cancelled or test. | |
| preview_pdf_url | No | Preview PDF with specimen stamp. | |
| service_fee_cent | No | Service fee in cents. | |
| delivery_estimate | No | Expected delivery, without guarantee. | |
| price_from_balance | No | Price when paid from the prepaid balance. | |
| posting_receipt_url | No | Proof of posting for registered mail. | |
| returned_undeliverable_at | No | Set when the letter came back as undeliverable. |