Direct mail API blog
Guides for developers who send mail from code: working examples in Node, Python and cURL, real prices, and the traps we hit along the way.
Page 5 of 6
Design and personalizationQR code postcards: size, placement and a unique code per API recipientHow big to print the code, where it can go, and how to put a different QR code on every card from one merge field.Mailr team5 min readfirst_namelast_productpromo_codeHi Ada,Trail Pack 30L?Code PEAK15Design and personalizationPersonalized direct mail: what to personalize, with API examplesThe merge fields worth using, real examples by industry, length limits and fallbacks, and what to keep off a postcard.Mailr team5 min readYour mailing listNCOAA: new address02: moved, left no addressLists and dataNCOA for API mailings: what it is and when your list needs itWhat the USPS change-of-address check catches that an address check can't, its return codes, the 95-day rule, and how to send the updated list.Mailr team7 min readUSPS and postageHow to mail flyers to a neighborhood: EDDM or a mail APIEvery Door Direct Mail by carrier route next to an addressed flyer by API: who gets one, what 1,000 cost each way, and the code.Mailr team5 min read4x65.5x8.56x96x11USPS and postageUSPS postcard size requirements for API mailingsCard, letter and flat limits from the Domestic Mail Manual, the 6x9 presorted rule, thickness and aspect ratio, and the address side to keep clear.Mailr team5 min read
Hi Ada,Code PEAK15DevelopersVariable data printing APIMap CSV columns to merge fields, check proofs on a free test key, verify addresses and mail batches of 1,000 from Node or Python.Mailr team13 min readNew pool permitOwner mailing addressPostcardLists and dataDirect mail API for building permits and public recordsPull new permits and licenses from city and county open data, find the owner's mailing address and mail each record once.Mailr team5 min readPOST /v1/postcardspsc_5f8a2c916x9PrintedHanded to USPSIn transitDevelopersHow to send postcards programmatically via APIOne POST request mails a postcard: working Python, Node.js and cURL code, a status check and your own HTML design.Mailr team4 min readcustomer.subscription.deletedWin-back postcardIntegrationsDirect mail API for StripeA welcome letter when a subscription starts and a win-back postcard when a customer cancels, from one webhook handler.Mailr team4 min read
| first_name | promo_code |
|---|---|
| Ada | PEAK15 |
| Sam | PEAK15 |
START SENDING
Put your first postcard in the mail
Create a key, send a test to yourself, and check the proof before anything prints.
- Postcards, flats and folded mailers
- A proof before anything prints
- Free test mode: nothing prints, nothing charges
- A status for every piece