API-driven direct mail printing pipeline connecting CRM data to automated mailers
MarketingAutomationTechnology

API-Driven Direct Mail Printing Automation

API-driven direct mail printing, explained. How to connect your CRM to Lob, PostGrid, and Open Letter Connect for hands-free mailer execution.

JM

Jason Macht

Founder @ White Space

February 10, 2025 · Updated October 23, 2026
12 min read

I spent three hours last month manually uploading a CSV to a print vendor's portal for direct mail printing, double-checking addresses, and crossing my fingers that the merge fields would work. The campaign was 2,000 postcards. Not huge, but enough to make me question my life choices.

The next campaign was 5,000 pieces, and I never touched a spreadsheet. The whole thing triggered automatically when leads hit a certain score in our CRM. That's what API-driven direct mail printing gets you.

If you're still coordinating print campaigns by hand (exporting lists, emailing files to vendors, waiting for proofs), you're spending days on something a direct mail API turns into one automated workflow.

Let's go ahead and jump into it.

What is API-driven direct mail?

API-driven direct mail means connecting your software directly to a printing and mailing service. Instead of logging into a vendor portal and uploading files, your CRM or automation platform sends a request to the print API, and the mailer gets produced and shipped with nobody touching it.

It works like booking a ride on Uber. You don't call a dispatcher; your app talks to their system and a driver shows up. Here, your marketing system talks to the print system and postcards show up in mailboxes.

These are the main platforms:

PlatformStrengthsPostcard pricing
LobEnterprise-grade, address verification, excellent API docs$0.615 to $0.905 a piece, by plan
PostGridStrong Canada supportSee their pricing page
Open Letter ConnectReal-pen handwritten letters, CRM integrations$0.627 to $0.898 for a 4x6, by plan
StannpUK and EU mail, good for internationalVaries by region
Click2MailUSPS-focused mailingSee their pricing page

Lob's figures come from its pricing page as of November 2026, and Open Letter Connect's from theirs as of October 2026. Prices change, so check before you budget.

Each has trade-offs. Lob is the most developer-friendly. PostGrid is the one to look at if you have a lot of Canadian addresses. Open Letter Connect is the pick when you want handwritten letters written with a real pen.

Why automate direct mail at all?

Mail gets physically handled. Someone walks it in from the mailbox and decides what to do with it, and it isn't competing with a hundred other messages in an inbox or getting filtered as spam.

The problem has always been execution. Manual direct mail is slow, error-prone and hard to scale, so it gets sent in occasional batches instead of at the moment it would matter. An API lets you send one piece at the moment a lead does something, the same way you'd send an email.

How does it actually work?

Here's an example. Say you want to send a postcard automatically when a lead requests a quote but doesn't convert within 7 days.

Step 1: Set up your trigger

In your automation platform (HubSpot, ActiveCampaign, Make.com, whatever you use), create a trigger:

  • Lead submits quote request form
  • Wait 7 days
  • Check if opportunity is still open
  • If yes, trigger the direct mail workflow

Step 2: Prepare your template

Most direct mail APIs work with HTML templates or PDF uploads. You design your postcard once, with merge fields for personalization:

<div class="postcard-front">
  <h1>Hey {{first_name}}, still thinking it over?</h1>
  <p>Your custom quote for {{product_name}} is waiting.</p>
  <p class="offer">Use code MAILBACK for 10% off</p>
</div>
<div class="postcard-back">
  <p>{{first_name}} {{last_name}}</p>
  <p>{{address_line1}}</p>
  <p>{{city}}, {{state}} {{zip}}</p>
</div>

Upload this template to your direct mail platform and save the template ID.

Step 3: Connect the API

Here's what the API call looks like with Lob:

const Lob = require('lob')('your_api_key');

Lob.postcards.create({
  description: 'Follow-up postcard for {{lead.email}}',
  to: {
    name: lead.name,
    address_line1: lead.address,
    address_city: lead.city,
    address_state: lead.state,
    address_zip: lead.zip
  },
  front: 'tmpl_your_front_template_id',
  back: 'tmpl_your_back_template_id',
  merge_variables: {
    first_name: lead.firstName,
    product_name: lead.quotedProduct,
    offer_code: 'MAILBACK'
  }
}, function(err, postcard) {
  console.log(postcard.id);
});

Step 4: Handle address verification

This is where a lot of DIY direct mail falls apart. Bad addresses mean wasted money and undelivered mail.

Good APIs like Lob verify addresses before printing. They check whether the address is valid and deliverable, whether the ZIP code matches the city and state, and whether it needs standardizing ("Street" vs "St").

If an address fails verification, you get an error response instead of a printed piece that goes nowhere.

Step 5: Track and measure

Direct mail APIs report each piece's status: mailed (it entered the mail stream), in transit through the USPS network, delivered (for eligible mail classes) or returned as undeliverable.

You can webhook these events back to your CRM to update lead records and trigger follow-up actions.

What does it look like in practice?

Picture a real estate wholesaler sending handwritten letters to property owners. The manual process is to pull a list from PropStream, export it to CSV, upload it to a vendor, wait for a proof, approve it and wait for delivery.

Automated, it looks different. When a property matches their buy criteria in PropStream, a webhook fires to Make.com, which calls the Open Letter Connect API, and the letter is ordered without anyone touching a CSV.

What they get is speed and consistency: every new match gets a letter, and nobody has to remember to send it.

The same pattern fits e-commerce. A Klaviyo flow can trigger a Lob postcard with a personalized discount code after a lapsed customer ignores the last email in a win-back sequence. Because the code is tied to the customer ID, you can see exactly which orders the postcard produced. In B2B, a Salesforce trigger can send a mailer to a target account that visited your pricing page twice without booking a demo.

How do Lob, PostGrid and Open Letter Connect compare?

Lob

Lob fits companies that need enterprise reliability, strong address verification and thorough documentation.

On its pricing page (November 2026), postcards start at $0.905 a piece on the free Developer plan, $0.645 on Startup and $0.615 on Growth. Letters start at $0.828, $0.658 and $0.628 on the same plans. Startup and Growth carry platform fees starting at $260 and $550 a month, and Enterprise is custom. HIPAA-compliant mailings are supported on the Enterprise tier.

The API documentation is the best I've used, with code samples in several languages and a test mode that lets you validate an integration without spending money. It also integrates with Salesforce, HubSpot and Zapier. The downside is that the free plan has the highest per-piece rates, and the lower rates come with a monthly platform fee.

PostGrid

PostGrid suits companies with a lot of Canadian addresses. It has Canada Post integration, address verification for the US and Canada, and cheque printing. It has fewer native integrations than Lob, and its documentation is functional but has fewer code samples and community resources. PostGrid's pricing page doesn't list per-piece rates publicly, so get a quote.

Open Letter Connect

Open Letter Connect is the software platform from Open Letter Marketing, a direct mail company founded in 2016. It's built for teams that want handwritten letters written with a real pen, or mail triggered from a CRM, ecommerce platform or marketing workflow.

There's a free Starter plan, plus Growth at $99/month and Professional at $199/month, with lower per-piece rates on higher plans. A 4x6 postcard runs $0.627 to $0.898 and a Real Penned Letter $1.768 to $1.990, depending on plan. Enterprise pricing is by quote. (Prices from their pricing page, October 2026.)

Real Penned Letters are written with a real ballpoint pen and blue ink, addresses included. The platform also handles postcards in four sizes, letters, snap packs and self-mailers. It integrates with Zapier, HighLevel, HubSpot and Shopify, includes free address verification and NCOA, and tracks calls, QR codes and links. There's no order minimum. Test and live API keys are included, along with webhooks (1 to unlimited, depending on plan).

Real-pen letters cost more per piece than printed mail, as handwritten mail does everywhere, and the lowest per-piece rates require a monthly plan.

How do you launch your first campaign?

Here's a three-week plan to get your first API-driven campaign running.

Week 1: Foundation

  1. Choose your platform. For most use cases I'd start with Lob, because the documentation and test mode make the first integration the easiest.
  2. Sign up and get API keys. Every platform has test and live keys. Start with test mode.
  3. Verify your return address. You need one before you can send.
  4. Upload or create templates. Start simple: a 4x6 postcard with your logo, a headline and merge fields.

Week 2: Integration

  1. Pick your trigger. What event should send a mailer: a lead score threshold, days since last purchase, a form submission? For five trigger campaigns to start from, see postcard campaigns on autopilot.
  2. Build the connection. Make.com and Zapier have pre-built Lob modules. If you're coding directly, use their SDKs.
  3. Map your data. Make sure the fields in your CRM match what the API expects, especially address formatting.
  4. Test in sandbox mode. Send test requests and check the data flows correctly. Lob's test mode returns realistic responses without printing anything.

Week 3: Launch and learn

  1. Switch to live mode by replacing your test API keys with production keys.
  2. Start with a small segment. Pick 100 to 200 recipients and watch the results before you send to your whole database.
  3. Set up tracking webhooks so delivery status flows back into your CRM.
  4. Measure redemption rates, response rates and cost per response.

What mistakes should you avoid?

The most expensive one is skipping address verification. I've seen campaigns where 15 to 20% of addresses were undeliverable, and every one of those pieces was money thrown away. Use a platform with built-in verification, and when an address fails, flag it for manual review instead of silently skipping it.

Over-personalizing is the next. Cramming someone's name into every sentence feels creepy: "Hey John, your John-sized opportunity awaits, John!" Their name in the greeting, the product or service they asked about, and maybe their city is usually enough.

Every piece needs one clear call to action. Visit a URL, call a number or use a code. Give them one thing to do, not five.

Direct mail also has different economics from email. A $0.70 postcard can be very profitable when your customer lifetime value supports it, so don't apply email thinking (send to everyone and hope for a fraction of a percent) to a channel that costs money per piece.

Finally, test it. A/B test headlines, offers and formats the way you would with email. The platforms make this easy: split the send across template variants.

How do you work out the ROI?

Here's an illustrative win-back campaign to 1,000 lapsed customers. The response and click rates are assumptions to show the math, not benchmarks, so swap in your own.

MetricEmail onlyEmail + direct mail
Send cost~$0$700 (1,000 x $0.70)
Assumed response rate1.5%4.4%
Conversions1544
Avg order value$75$75
Revenue$1,125$3,300
Net revenue$1,125$2,600

At those assumed rates, the mail version produces about 2.3x the net revenue after paying for the mailers. The break-even point is easy to find: at a $75 order value and $0.70 a piece, the mail has to bring in about 10 extra orders per 1,000 to pay for itself. Run a holdout group so you know your real number.

FAQ

Q: How long does production and delivery take?

Most platforms ship within 2 to 5 business days of the API call, with delivery 3 to 7 days after that depending on mail class. First-Class is faster but costs more. Standard/Marketing mail is cheaper but slower.

Q: Can I send internationally?

Yes, but coverage varies. PostGrid is strong in the US and Canada, and Stannp in the UK and Europe. Check your platform's international options and pricing, because international mail costs more than domestic.

Q: What about GDPR and privacy?

You need consent to mail someone, just like email. Most platforms are GDPR-compliant on their end (data processing agreements available), but you're responsible for having the right to use the addresses you're mailing.

Q: How do I track conversions?

Unique promo codes are the gold standard. Assign a code to each recipient (or each campaign) and track redemptions. QR codes with UTM parameters work too.

Q: What if an address is invalid?

Good APIs return verification failures before printing. You can set up error handling to flag these leads for manual review or update, rather than wasting a print.

Q: Is there a minimum volume?

Many API platforms have no minimums, so you can send one piece at a time. That's the point of the whole setup: triggers sending individual pieces when conditions are met.

What's next for direct mail automation?

A few things I'm watching. Tools are starting to generate postcard designs and copy from recipient data, so the image, headline and offer on each piece could be chosen by AI. CRM integrations keep getting deeper, which means less custom code between the trigger and the print order. Some platforms are experimenting with "programmatic direct mail," borrowing the idea from programmatic ad buying. And recycled paper and carbon-neutral delivery are showing up as standard options.

Where should you start?

Start with one trigger, one template and one segment. Get that working, then expand. The technology is mature enough that the hard part is deciding what to send and to whom.

We set up automated direct mail workflows, from simple postcard follow-ups to multi-touch sequences. Platforms like RemailDirect specialize in direct mail automation for trigger-based campaigns if you want to skip the DIY approach. Or if you want help designing your automation strategy, check out our services.

That's all I got for now. Until next time.

JM

Jason Macht

Founder & CEO, White Space Solutions

Jason builds AI automation systems for real estate investors and business owners. With experience spanning data analytics, direct mail automation, AI voice agents, and revenue intelligence, he helps companies replace manual workflows with intelligent systems that drive measurable results.

Want to get more out of your business with automation and AI?

Let's talk about how we can streamline your operations and save you time.