Certified Mail Sender
v1.0.2USPS Certified Mail: person-approved or trusted auto-send, with optional electronic Return Receipt.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
quote_letter Quote a certified letter
Quote a 1–10 page Certified letter. Provide exactly one of pages or pdf_base64. Anonymous quotes use the MailmanAPI card price. CMS API keys use CMS pricing. For electronic Return Receipt use certified_err. Example: {"pages":1,"service":"certified"}.
| Parameter | Type | Description |
|---|---|---|
service * | string | |
pages | integer | Page count from 1 to 10. Provide exactly one of pages or pdf_base64; omit pages when providing a PDF. |
pdf_base64 | string | A base64-encoded PDF whose pages we count for the quote. Provide exactly one of pages or pdf_base64; omit pages when providing a PDF. Neither field takes precedence: sending both is rejected, even if… |
create_letter Create a certified letter draft
Draft a Certified letter. Anonymous drafts go to MailmanAPI. Show approval_url only to the person so they can review and pay. Keep the full private mail_url with its t token for get_letter and cancel_letter. CMS API keys stay local, including existing auto-send settings. For a MailmanAPI draft omit send_now. Use one of text, pdf_base64 or pdf_url. Example: {"to":{"name":"Jordan Lee","line1":"500 Market St","line2":"Suite 200","city":"Philadelphia","state":"PA","zip":"19106"},"from":{"name":"Sam Ortiz","line1":"12 Oak Ave","city":"Columbus","state":"OH","zip":"43215"},"service":"certified_err",…
| Parameter | Type | Description |
|---|---|---|
from * | object | |
idempotency_key * | string | Use a new UUID for a new letter; reuse it with the same body on retries. Anonymous keys need at least 16 characters. |
service * | string | certified sends USPS Certified Mail with USPS tracking. certified_err adds the electronic Return Receipt: a USPS PDF with the recipient's signature, once USPS provides it. Choose certified_err when th… |
to * | object | Recipient address, checked by our printing partner against USPS records. If undeliverable during creation, the request is refused with address_undeliverable (422) and no draft is created. Read error.a… |
pdf_base64 | string | |
pdf_url | string | |
send_now | boolean | Choose true only when the person asks to skip the 30-minute cancellation hold after payment. Payment and any required approval are still required (auto-send pays from balance without per-letter approv… |
text | string | The letter body, from the greeting on. We add the sender's address, the date and the recipient's address. Complete matching leading blocks are removed; a different leading address block or date is ref… |
get_letter Get a letter's status
Read the letter's current status. Use a CMS ltr_ id with its creating CMS API key or its complete private letter_url. For a MailmanAPI mp_ id, pass the full mail_url with its t token as letter_url and omit Authorization.
| Parameter | Type | Description |
|---|---|---|
id | string | Letter id; send the API key that created it in Authorization. |
letter_url | string | Complete private letter_url or approval_url, including its t token. |
list_letters List letters
List this API key's letters newest first, with cursor pagination. Listing is free and requires the creating API key; it changes nothing. first_usps_scan identifies the earliest individual-letter scan, not shipment receipt; only proof_of_mailing establishes acceptance. partner_checked_at is the last successful tracking poll, not the scan date. files_deleted_at means downloads are gone. Repeated adjacent checks carry observations and last_at; at stays the first check. Timestamps are UTC RFC 3339 with milliseconds; date-only fields retain their documented calendar dates. Pass next_cursor as curso…
| Parameter | Type | Description |
|---|---|---|
cursor | string | |
limit | integer |
send_letter_now Send a paid letter now
For an eligible paid CMS ltr_ letter only. Skip the remaining CMS cancellation hold when the person asks to send immediately. Existing payment and screening requirements still apply.
| Parameter | Type | Description |
|---|---|---|
id | string | Letter id; send the API key that created it in Authorization. |
letter_url | string | Complete private letter_url or approval_url, including its t token. |
cancel_letter Cancel a letter
Cancel an eligible letter. For a CMS ltr_ letter use its creating API key or complete private letter_url and read the refund outcome. For a MailmanAPI mp_ letter use the full mail_url with its t token as letter_url and omit Authorization. Read the returned next_step.
| Parameter | Type | Description |
|---|---|---|
id | string | Letter id; send the API key that created it in Authorization. |
letter_url | string | Complete private letter_url or approval_url, including its t token. |