Lob

API

Print and send physical letters and postcards through an API

Price
Print and postage fees per mail piece
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

  1. Create a Lob account and copy a test API key
  2. Prepare supported artwork and valid destination addresses
  3. 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

Tasks

Last checked on .