Connectors / Marketing · HTTP Connector
Lob integration and API
Create a postcard, create a letter and create a check in Lob. Connect Lob to the rest of your marketing stack with Tray.ai.
What can you do with Lob on Tray.ai?
Lob is a direct mail and address verification service that prints and posts letters, postcards, self-mailers and checks from API calls, and checks US and international addresses. Tray.ai connects to Lob through the HTTP Connector, so your workflows can call the Lob API alongside the rest of your stack.
- Create a postcard to welcome each new customer added to your CRM.
- Create a letter for overdue accounts flagged by your billing system.
- Create a check for approved vendor payments from your accounting system.
- Cancel a postcard if the customer unsubscribes before it is mailed.
- Connects through
- HTTP Connector
- Authentication
- Basic authentication
- Base URL
- https://api.lob.com/v1
Set it up
Connect Lob to Tray.ai
Each step uses Lob's own API details, from its documentation.
Save Lob's username and password
Save the credentials Lob gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.lob.com/v1 as the base URL. Or paste a cURL example from Lob's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List postcards”
It's one of 23 documented actions, under Postcards. The response comes back as data the next step can map into your other apps.
Hand it to an AI agent
Wrap “Create a postcard” and “Retrieve a postcard” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Workflows to build with Lob
Connect Lob with Shopify, NetSuite and Salesforce
Each one uses actions and events from Lob's own API documentation.
Mail a welcome postcard to new Shopify customers
When
A customer places a first order in Shopify
Then
- Verify a US address
- Create a postcard with the welcome template
With Shopify
Send a letter to customers with overdue invoices in NetSuite
When
On a schedule
Then
- Get invoices over 60 days past due from NetSuite
- Create a letter for each customer
With NetSuite
Verify Salesforce contact addresses with Lob
When
A contact is created in Salesforce
Then
- Verify a US address
- Update the contact in Salesforce with the corrected address
With Salesforce
Apps you can build on Lob data
Internal tools your team can build with an AI assistant, each one using Lob calls from its API documentation.
Direct mail campaign tracker
Lists postcards and letters sent and lets marketing cancel a piece before it mails.
Address check tool
Verifies a US or international address before it is saved for mailing.
Check payment log
Lists checks sent with their details and lets finance cancel a check that should not go out.
Lob MCP server for AI agents
Build an MCP server on Lob in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Create a postcard
- Create a letter
- Create a check
- Create an address
- Verify a US address
- Create a template
- List postcards
- Retrieve a postcard
What the Lob API covers
6 resources and 23 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Postcards
- Create a postcard
- List postcards
- Retrieve a postcard
- Cancel a postcard
Letters
- Create a letter
- List letters
- Retrieve a letter
- Cancel a letter
Checks
- Create a check
- List checks
- Retrieve a check
- Cancel a check
Addresses
- Create an address
- List addresses
- Retrieve an address
- Delete an address
Address verifications
- Verify a US address
- Verify an international address
- Autocomplete a US address
Templates
- Create a template
- List templates
- Update a template
- Delete a template
Checked against Lob's own documentation on 2026-10-22
How Tray.ai makes this work
Lob plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Lob, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Lob actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Lob data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore marketing apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every marketing connector →
Frequently asked questions
What can a Tray.ai workflow do in Lob?
The Lob API documents 23 actions across 6 resources (Postcards, Letters, Checks, Addresses, Address verifications, Templates). For example: Create a postcard; Create a letter; Create a check. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Lob?
The Lob API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
See Lob working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.