Lob
APIPrint and send physical letters and postcards through an API
- Access
- Test or live key via HTTP Basic
About
Direct-mail API to print and mail personalized letters, postcards and other physical pieces from HTML or PDF, with production and delivery events. Test keys never mail physical pieces; live requests incur print and postage charges.
What you can do with it
- Generate and send personalized physical letters or postcards from your app
- Track mail production and delivery events with webhooks
- Test direct-mail workflows without posting physical mail
Get started
- Create a Lob account and copy a test API key
- Prepare supported artwork and valid destination addresses
- Use a live key only when ready to pay for print and mailing
Example
# Lists existing letters; it does not create or mail anything.
curl "https://api.lob.com/v1/letters?limit=10" \
-u "$LOB_TEST_API_KEY:"Details
- Hosting
- Hosted service
- Available in
- Worldwide
- Official SDKs
- JavaScript/TypeScript, Python, Ruby, PHP, Java
- MCP server
- None