Certified Mail API
Mail USPS Certified Mail with one HTTP request: a proof before you pay, the tracking number, the signature as a PDF. $8.61 a letter. A key in one call.
· Updated
One HTTP request mails a letter by USPS Certified Mail. You see the proof and the exact price before you pay, you get the USPS tracking number once it is mailed and, if you ask for one, the recipient's signature as a PDF.
One more field on a letter
Certified Mail is an ordinary letter with extra_service set to one of three values:
| What you get, and the value that asks for it | Price |
|---|---|
USPS tracking and proof of mailingcertified |
$8.61 |
The same, and the recipient's signature as a PDFcertified_return_receipt_ |
$11.64 |
The same, and the signed green card (PS Form 3811) mailed back to your return addresscertified_return_receipt |
$14.27 |
Prices are for one page, black and white, to a US address, paid from a balance you add to by card. They are what each piece costs us, with no markup and no monthly fee. Full pricing, and how it compares with other services, each read from its own price page.
The calls
# A key, once. No sign-up form. It is shown once, so store it.
curl -X POST "https://api.mailsnail.dev/v1/accounts?ref=certified-mail-api"
export MAILSNAIL_KEY="msk_live_..."
# The proof and the exact price. Free, and nothing is mailed.
curl -X POST https://api.mailsnail.dev/v1/preview \
-H "Authorization: Bearer $MAILSNAIL_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": {"name": "Acme Property Management", "address_line1": "1 Main St", "address_city": "Brooklyn", "address_state": "NY", "address_zip": "11201"},
"from": {"name": "Sam Sender", "address_line1": "500 Oak Ave", "address_city": "Austin", "address_state": "TX", "address_zip": "78701"},
"body_text": "To whom it may concern,\n\nThis letter is my written notice that ...\n\nSam Sender",
"extra_service": "certified_return_receipt_electronic"
}'
# Mail exactly that proof. The price comes out of the key's balance.
curl -X POST https://api.mailsnail.dev/v1/letters \
-H "Authorization: Bearer $MAILSNAIL_KEY" \
-H "Content-Type: application/json" \
-d '{"draft_id": "..."}'
If the balance is short the last call answers 402, mails nothing and says where to add funds: POST /v1/billing/setup returns a link to a Stripe page where a person pays by card, $10 or more. Then send the same request again. Every call and every answer.
Instead of body_text you can pass file_url, the public address of your own letter-size PDF, and it is mailed as it is.
What comes back
The answer to the last call carries a status_url. It needs no key, so it can be stored with the record the letter belongs to. Once the letter has been mailed, it answers with USPS's own tracking, among its other fields:
{
"tracking": {
"type": "certified",
"tracking_number": "9414811898765432100012",
"usps_tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9414811898765432100012",
"status": "Delivered, Left with Individual",
"status_time": "2026-11-24 11:32:00.0",
"status_location": "ANYTOWN, NY 12345"
},
"return_receipt": {
"type": "electronic",
"url": "https://api.mailsnail.dev/v1/letters/.../return-receipt"
}
}
- The tracking number appears once the letter has been mailed. Letters are printed and handed to USPS on the next business day. The scans are refreshed about once a day; usps.com shows every one.
- The signature PDF is at
return_receipt.urlafter delivery, sometimes a few days after. Until USPS issues it, that address answersreturn_receipt_not_available. - The green card is not online. USPS mails it back to the return address on the letter.
Before you send
- Read the proof. It is the exact PDF that will be printed. A letter can be cancelled, and its price returned to the balance, only until printing starts, usually about a day.
- A draft is mailed once. Sending the same request again returns the first answer and mails nothing more, so a retry is safe.
- US addresses only.
- We print and mail what you give us. We do not write or check legal notices. Letters that people most often send certified, with their wording: letter templates.
Without writing code
- From an AI app. Mailsnail is also an MCP server: add
https://api.mailsnail.dev/mcpto Claude, ChatGPT, Cursor or Codex and ask for a certified letter. Steps for each app, and the guide. - From an agent, with no account. A second MCP address,
https://api.mailsnail.dev/guest/mcp, asks for no sign-in. The agent makes the proof, and a person pays for that one certified letter by card on a page it hands them: $8.83. What it does. - One letter, from a web page. Write or paste it, see the proof and pay by card: $8.83 for Certified Mail, with no account.
Related
- Physical mail API for AI agents: the REST API or the MCP server, and which fits your agent
- How to send certified mail online
Give your agent Mailsnail
From your own code, or an agent with nobody at the keyboard: one call returns an API key, with no sign-up.
curl -X POST "https://api.mailsnail.dev/v1/accounts?ref=certified-mail-api"Checking an address and making a proof are free. A person adds funds once by card, and each letter then takes its price from that balance: from $1.21. The five calls →
From an app that speaks MCP: add one URL and sign in. Nothing to install and no key to handle. In Claude Code:
claude mcp add -t http mailsnail https://api.mailsnail.dev/mcpThen run /mcp and choose Authenticate. In Claude Desktop or ChatGPT, add https://api.mailsnail.dev/mcp as a custom connector. Cursor and other JSON-config clients take:
{
"mcpServers": {
"mailsnail": {
"url": "https://api.mailsnail.dev/mcp"
}
}
}A one-page letter is from $1.21, and preview_letter shows the proof and exact price before anything is charged. Setup for every app →
See also
MCP Server for Direct Mail
Mailsnail is the Model Context Protocol server that lets any MCP agent send physical letters and certified mail. Connection details, tool list, and pricing.
Click2Mail API Alternative
Looking at Click2Mail for programmatic mail? Mailsnail mails USPS letters from your own code or an AI assistant: an API key in one call, no subscription.
Preliminary Notices via MCP
Construction-industry preliminary notices have to ship as physical mail with proof of delivery. Here's how to give an agent the ability to send them.