Skip to content
Lob logo

Connectors / Marketing · HTTP Connector

Automate Lob with Tray.ai

Create a postcard, create a letter and create a check in Lob. Connect Lob to the rest of your marketing stack with Tray.ai.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.

See all connectors

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.

Step 1

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.

Step 2

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.

Step 3

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.

Step 4

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.

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

docs.lob.com

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.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.