- What to check before you connect a mail API
- What goes into the call and what comes out
- Letters, checks, postcards and pen-and-ink cards
- Address quality before anything prints
- Mail classes, speed and the tracking you get back
- Print-and-mail APIs you call from your own code
- Portals, CRM links, shop apps and handwritten cards
- Sending outside the United States
- Security, compliance and regulated post
- The final check: who can press send
A direct mail API takes a record from your software and turns it into a printed letter, check or postcard that's posted for you. Start with a service whose own site names an API, address verification and the mail classes you need, then run the checks below in order.
Sending post from code sounds old-fashioned until an invoice, a compliance notice or a thank-you card has to reach someone's door instead of their spam folder. The services on this list print, process and post on your behalf, and they differ most in what they'll accept, what they'll print and how much control you get over the address and the class of mail.
What to check before you connect a mail API
I'd run through these in this order, because each one rules services out faster than the one after it:
- What the call takes in: a finished PDF, an HTML template with merge fields, or an uploaded design. Read the docs for the exact input before you map a single field.
- Which formats it prints: letters, checks, postcards, self-mailers, gift cards or handwritten-style notes. Confirm the one you need is reachable through the API, not only the web app.
- Whether address verification sits inside the same service, and whether it covers every country your list holds.
- Which mail classes you can choose, such as First-Class, Certified or a courier option, and what tracking data comes back to your system.
- How a send gets triggered: your own code, a CRM connection, a shop integration or a portal upload.
- How authentication works, whether that's a plain API key or OAuth2, and who on your team will hold the credentials.
- How the bill is stated in the provider's own words: a monthly subscription, a credit balance, a per-piece charge or no monthly fee at all.
- What the provider says about security and compliance, which matters as soon as statements, health notices or finance letters go through it.
The first three decide most of it for a developer. Get the input, the format and the address handling right and what's left is configuration.
What goes into the call and what comes out
A mail API is a printing and posting job wrapped in a request. You send a document or a template plus the recipient's details, and the service hands back an identifier you can follow as the piece moves through print and the post. Before you write any code, find the request schema in the docs and check three things: the file types it accepts, how merge fields are named, and what status updates it sends back, whether by webhook or by polling.
If your letters start life as generated invoices or statements, the document step is its own job. A PDF API often sits upstream, building the file that the mail service then prints, and it's worth keeping those two jobs separate so a template change doesn't break posting.
Mailform's homepage, for instance, leans on invoices, pointing to its QuickBooks app for sending them as letters.
Letters, checks, postcards and pen-and-ink cards
These are different jobs that happen to share a postbox. Transactional post (invoices, notices, statements, checks) needs accuracy and a record. Marketing post (postcards, self-mailers, letters to prospects) needs personalisation and response tracking. Handwritten cards sit in a corner of their own, where the selling point is the personal touch rather than volume.
PostGrid's homepage puts the split plainly, describing an API service for "transactional mails, marketing direct mails and address verification at scale".
Decide which of the three you're sending before you shortlist anything. A service built around CRM campaigns can feel heavy for one certified letter a week, and a letter-posting service won't give a marketer the response reporting they'll want.
Address quality before anything prints
Bad addresses cost twice: you pay to print and post the piece, and the person still doesn't get it. Check whether the provider verifies addresses inside the same API call, as a separate endpoint, or not at all, and what it does with an address it can't confirm. Some reject the send, some correct it, some post it anyway, so read the docs on that point before you go live.
Where you already clean and place addresses with a geocoding API, check whether the mail provider's own verification would repeat that work or add to it. Running both is fine; just know which one your system trusts when they disagree.
Mail classes, speed and the tracking you get back
The class of mail is where legal and financial post parts company with marketing post. A late payment notice or a contract may need Certified Mail and a delivery record; a postcard campaign won't. Check which classes the API exposes as a parameter, rather than as an option buried in the web app, and what tracking events it pushes back.
LetterStream's own description covers First-Class and Certified Mail, FedEx 2Day and postcards from one print-to-mail service.
Parcels are a separate problem. For boxes, labels and carrier rates a shipping API is the right tool, and a mail API stays with paper.
Print-and-mail APIs you call from your own code
Lob
A direct mail automation platform with its own nationwide print network, routing, printing and delivering mail with the stated aim of controlling postage costs.
PostGrid
Its REST API sends personalised letters, checks and postcards, and handles address verification globally from the same service.
Stannp
Personalised postcards, letters and self-mailers, designed, scheduled, sent and tracked in the US or worldwide through an online platform or API service.
LetterStream
A print-to-mail engine for First-Class and Certified Mail, FedEx 2Day and postcards, triggered from a web portal, integrations or an API.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
Thanks.io
Handwritten-style postcards, letters and gift cards with AI design and QR tracking, sent through a REST API that uses OAuth2 authentication.
Portals, CRM links, shop apps and handwritten cards
Postalytics
Direct mail automation software that sends personalised mail straight from your CRM, then analyses delivery and response.
PostPilot
Programmatic direct mail built for Shopify and ecommerce brands, including a lookalike engine for prospecting by post.
Mailform
Sends letters and documents online by USPS First Class or Certified Mail, with USPS tracking available on any item.
Postal Methods
Online print and mail for letters, invoices, statements and notices; the service prints, processes and posts them for the business.
Handwrytten
Handwritten notes in pen and ink, ordered online: type the message or let its AI shape it, then choose a card or design stationery.
Sending outside the United States
Much of this category talks in USPS terms, so an international list needs its own check. Look for two things in the docs: which countries the service will print and post to, and whether its address verification covers those countries or only domestic addresses. A provider that posts abroad but can't verify a foreign address leaves you cleaning that data yourself.
Stannp, on its own site, says it sends and tracks direct mail "in the US or worldwide" through its platform and API.
Also check where the piece is printed for a foreign recipient. That decides how long it takes to arrive, and it's a fair question to put to support before you commit a whole list.
Security, compliance and regulated post
Once statements, medical notices or account letters go through a mail API, the provider is handling personal data on your behalf. Check how files are stored and for how long, who at the provider can see them, and what the contract says about data handling. Those answers matter more than any template feature.
Lob's homepage, for example, carries a piece on how "healthcare and finance companies scale securely" with direct mail APIs.
Do you make direct mail APIs or print-and-mail services? Tool makers can ask to be considered for a featured place on this list.
The final check: who can press send
Paper doesn't come back. An email sent in error can be followed by an apology a minute later; a batch of letters in the post can't be pulled back. So the last item on the list is about access, not features. Decide which systems are allowed to trigger mail, keep the credentials out of shared code, and put a cap or an approval step in front of any batch large enough to hurt.
Thanks.io, as one example, names OAuth2 authentication for its REST API, which is the sort of detail to look for in any provider's docs.
With that settled, you're choosing between services on the things that differ: the input they take, the formats they print, the addresses they'll check and the class of mail they'll put it in.
Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.


