Lob is a direct mail and address verification API that lets a WordPress site, or the systems behind it, validate a mailing address and trigger a printed postcard or letter without a print vendor in the loop.
Support
This is for businesses that want direct mail or address verification tied to a WordPress site, a form or a CRM.
-
Lob API integration: Connect a site or application to Lob's API with custom server-side code.
-
Address verification: Verify and standardize addresses entered in forms, using Lob's verification and autocomplete endpoints.
-
CRM connections: Connect Lob to HubSpot workflows so mail goes out from CRM records fed by your site.
-
Mail status tracking: Record Lob delivery and tracking events against a lead or order through a webhook endpoint.
-
Automation flows: Connect WordPress forms and commerce plugins to Lob through Zapier or Make.
Experience
SBLI (a major life insurance provider, and a client I worked with over several years on WordPress, a custom online application, and analytics). In early 2024 I worked with SBLI on a direct mail workflow built on Lob. The first stage was the Lob API: I built address lookup and verification against Lob and iterated on it as part of finalizing the connection to HubSpot, so that address data could be checked and standardized before it reached the CRM side of the process. The following month I took the Lob setup into production and got SBLI's first postcard through the production system.
That was a short engagement of roughly two months in 2024. It sat alongside my wider work for SBLI, where the website and application run on WordPress and Angular with a CRM lead service behind them.
Approach
There is no official Lob plugin for WordPress, and there is no maintained community plugin that wraps the Lob API. Lob does not need one. It is a plain REST API, so the connection to a WordPress site is custom code or an automation layer. The realistic paths:
-
Direct API calls from server-side code. A WordPress plugin, theme function, or a custom REST endpoint calls the Lob API with HTTP Basic authentication (the API key is the username, the password is blank). Lob issues separate test and live key pairs, so a build can be exercised in test mode before anything is printed. Lob maintains official SDKs for PHP, TypeScript, Python, Java, Ruby, C#, Elixir, and Go. The PHP SDK or
wp_remote_post()are both workable inside WordPress. -
Address verification at form time. A form on a WordPress site can send the entered address to Lob's US verification (single or bulk) or autocomplete endpoints, then store or correct the standardized result. Lob also issues publishable keys limited to verification and autocomplete, which is the pattern for calling from the browser; anything that sends mail should stay server-side.
-
Through a CRM. Lob has a documented HubSpot path: a HubSpot workflow with a Custom Code action (Python or Node) that calls the Lob API, and a no-code HubSpot integration available on paid Lob plans. In that setup WordPress only feeds the CRM (for example, a form submission creates or updates a contact) and the CRM triggers the mail.
-
Automation tools. Zapier, Make, Pipedream, and similar services list Lob connectors and prebuilt flows from WordPress form and commerce plugins (WPForms, Ninja Forms, WooCommerce). These are third-party connectors, not Lob products.
-
Webhooks. Lob sends events (tracking, delivery status) to an endpoint you control, which can be a custom WordPress REST route that records mail status against a lead or order.
Which of these I have used: my Lob work at SBLI involved the Lob API for address lookup and verification, and a connection to HubSpot. That is an API and CRM integration rather than a WordPress plugin.
Benefits
-
Mail becomes a trigger, not a project. Once the API is wired in, a form submission, a deal stage change, or a quote can cause a physical piece to go out without anyone exporting a list or emailing a print shop.
-
Fewer undeliverable pieces. Verifying and standardizing an address when it is collected, rather than when the mail run is prepared, catches typos while the person is still on the page and can correct them.
-
No print vendor relationship to manage. Lob handles printing, postage, and USPS routing, and returns tracking events, so the site owner does not build or maintain a fulfillment process.
-
Safe to build and test. Separate test and live keys mean the full flow can be developed and reviewed without printing real mail, then switched to live once it is right.
-
Works with the CRM you already have. Because the usual pattern is website to CRM to Lob, marketing teams can keep their segmentation and workflows in HubSpot and let the website do what it already does: capture the lead.
-
Pay for mail, not for the API. Lob says the print and mail API is free to use and you pay for the mail itself, with address verification sold in tiers that include a free developer tier. That keeps a small pilot inexpensive.
Fit
Use Lob when physical mail should follow a digital event: welcome mailers after an application, renewal or reminder letters, confirmations in regulated industries such as insurance or finance, win-back postcards from a CRM segment. Also use it when address quality matters, because bad addresses cost real postage.
Consider something else when the volume is a handful of pieces a year (a print shop or USPS tools are simpler), when the mail needs to be a hand-signed or highly custom piece, or when you want a plug-in with a WordPress admin screen. PostGrid, Postalytics, and Click2Mail are comparable direct mail APIs, and Smarty or the USPS address APIs are options if you only need address verification. If the audience is entirely online, direct mail is the wrong channel.
Pitfalls to watch for
-
Calling the Lob API from the browser with a secret key. Secret keys belong on the server only.
-
Treating a verified address as a deliverable person. Verification confirms the address exists, not that the recipient lives there.
-
Skipping the test-mode pass. Mailing is not reversible once the send date passes.
-
Putting the whole flow inside WordPress when a CRM already owns the contact. Let the CRM be the system of record and keep WordPress as the intake layer.
Overview
Working with WordPress and Lob provides address validation and printed mail triggered from site activity when correctly implemented and integrated. Lob is a direct mail platform. You send an address, a design and a format, and Lob prints and mails it through USPS, with tracking events. It also offers an address verification API for US and international addresses, with US autocomplete. It is developer-first: the API is the core product.
FAQ
Answers to the most common questions I see asked by business owners,
CMOs and CTOs about Lob integrations with WordPress.
- Is there an official Lob plugin for WordPress?
-
No. I found no official Lob plugin in the WordPress directory or in Lob's documentation. Integration is done with custom code against Lob's REST API, or through a CRM or an automation service such as Zapier or Make.
- Can WordPress form submissions trigger a Lob postcard?
-
Yes. A form handler can call the Lob API from server-side code, or the form can write to a CRM or automation tool that does. Third-party services publish prebuilt flows for WPForms, Ninja Forms, and WooCommerce. Anything that sends mail should be tested with Lob's test keys first.
- Does Lob integrate with HubSpot?
-
Yes. Lob documents a HubSpot workflow approach using a Custom Code action that calls the Lob API, and a no-code integration for paid Lob plans. Zapier also offers a HubSpot to Lob connection. WordPress typically sits upstream, passing leads into HubSpot.
- What does Lob address verification do?
-
It checks that an address is valid and deliverable, standardizes it to USPS formatting, and offers autocomplete for US addresses. It also handles international addresses on a separate plan. Lob's US data refreshes monthly in line with the USPS schedule.
- How does Lob pricing work?
-
Lob says the print and mail API is free to use and you pay per piece mailed. Address verification is sold as monthly tiers (a free developer tier through enterprise) with per-request charges beyond the included allowance, and lower rates when billed annually. Confirm current figures with Lob, because third-party sites list conflicting numbers.
- Can I test without printing real mail?
-
Yes. Each Lob account has test and live API keys. Test-mode requests behave like live ones, return realistic responses, and do not print or mail anything.
- Should the Lob API key live in WordPress?
-
Only server-side, for example in a constant outside the web root or an environment variable. Lob's publishable keys exist for browser-side address verification and autocomplete, and secret keys should never be exposed in front-end code.
- Is Lob a good fit for a small business?
-
It can be, if mail volume is regular and tied to digital events. For a one-off mailing, a local print shop is simpler. The cost of building and testing the integration is justified when the same flow will run repeatedly.
Kevin's ability as a web developer and consultant, along with his eagerness to add value, have been a tremendously valuable asset to our firm and investment companies. His in-depth knowledge of B2B technologies, and straight forward ideas and advice, have been a very strong asset for us.Scott Maxwell Founder and Managing Partner
OpenView Venture Partners
Need help integrating Lob and WordPress?
If you're integrating your WordPress website with Lob I can help. Schedule a free consultation on Google Meet, or contact me by email directly.
Additional Consulting Services
Custom integrations are one slice of a broader practice. I've spent 18+ years as a fractional engineer for marketing and product teams — designing, building, securing, and measuring WordPress platforms end to end.