A Lob API mock for checking mailing addresses.
Your agent reads the seeded address book and creates a mailing address. Check the address-creation call and retrieve its recipient, street and postal code.
address_createdCalls POST /v1/addresses
Starting records
addresses
- key
acme-billing- state
CA- name
Anna Fischerbilling@acme.example
addresses
- key
helix-ap-old- state
OH- name
Accounts Payable- description
Helix Manufacturing AP
addresses
- key
summit-billing- state
NV- name
Daniel Reyesdaniel.reyes@summit-freight.example
addresses
- key
ridgeway-erin- state
PA- name
Erin Walsherin.walsh@ridgeway-robotics.example
Connect your agent to the Lob mock
When ancha runs your agent, it sets:
LOB_API_URLLOB_API_KEYLOB_ASSETS_URL
Point the client you already use at them.
import { Configuration, LettersApi } from '@lob/lob-typescript-sdk';
const config = new Configuration({ username: process.env.LOB_API_KEY, basePath: process.env.LOB_API_URL, baseOptions: { proxy: false } });
const letters = await new LettersApi(config).list(10);
// A proof PDF: await fetch(letters.data![0].url!.replace('https://lob-assets.com', process.env.LOB_ASSETS_URL!))Locally, ancha runs your agent as an ordinary process, so keep real Lob credentials out of its environment.
See all 28 endpoints
addresses
/v1/addresses/v1/addresses/v1/addresses/{id}/v1/addresses/{id}bank_accounts
/v1/bank_accounts/v1/bank_accounts/v1/bank_accounts/{id}/v1/bank_accounts/{id}/v1/bank_accounts/{id}/verifybulk
/v1/bulk/us_verificationschecks
/v1/checks/v1/checks/v1/checks/{id}/v1/checks/{id}letters
/v1/letters/v1/letters/v1/letters/{id}/v1/letters/{id}postcards
/v1/postcards/v1/postcards/v1/postcards/{id}/v1/postcards/{id}templates
/v1/templates/v1/templates/v1/templates/{id}/v1/templates/{id}/v1/templates/{id}us_verifications
/v1/us_verificationsSeed your own data
The data the Lob mock starts with on every run, cut to a few records. ancha twins seed lob prints every field.
Full seed YAML
twins:
- lob
seed:
lob:
account:
name: Acme
directory:
- line1: 1450 Larkspur Way
line2: Ste 300
city: San Francisco
state: CA
zip: 94107-2213
county: San Francisco
addresses:
- key: acme-billing
description: Acme billing (return address)
name: Anna Fischer
company: Acme, Inc.
line1: 1450 Larkspur Way
line2: Suite 300
city: San Francisco
state: CA
zip: "94107"
email: billing@acme.example
created: -4000h
- key: helix-ap-old
description: Helix Manufacturing AP
name: Accounts Payable
company: Helix Manufacturing
line1: 410 Foundry Road
city: Akron
state: OH
zip: "44308"
created: -6900h
- key: summit-billing
description: Summit Freight billing
name: Daniel Reyes
company: Summit Freight
line1: 3100 Freightway Blvd
city: Reno
state: NV
zip: "89502"
email: daniel.reyes@summit-freight.example
created: -2150h
- key: ridgeway-erin
description: Ridgeway Robotics pilot champion
name: Erin Walsh
company: Ridgeway Robotics
line1: 75 Gearhart Avenue
city: Pittsburgh
state: PA
zip: "15201"
email: erin.walsh@ridgeway-robotics.example
created: -195h
bankAccounts:
- key: acme-operating
description: Acme operating account
routingNumber: "322271627"
accountNumber: "4402219817"
signatory: Anna Fischer
bankName: J.P. MORGAN CHASE BANK, N.A. - ARIZONA
created: -4000h
templates:
- key: invoice-letter
description: Invoice cover letter
html: |-
<html><body style="font-family: Helvetica, Arial, sans-serif; font-size: 11pt">
<p>Acme, Inc. · 1450 Larkspur Way, Suite 300 · San Francisco, CA 94107</p>
<p>Dear {{contact}},</p>
<p>Enclosed is {{customer}}'s invoice for {{period}}: {{amount_due}}, due {{due_date}}.</p>
{{#if po_number}}<p>Purchase order: {{po_number}}</p>{{/if}}
<p>Pay by card or ACH at billing.acme.example, or mail a check payable to Acme, Inc. to the address above.</p>
<p>Questions? Write to billing@acme.example.</p>
<p>Anna Fischer<br>Finance Manager, Acme</p>
</body></html>
created: -3000h
- key: welcome-front
description: "Welcome postcard: front"
html: <html><body style="background:#14325c;color:#fff;font-family:Helvetica"><h1>Welcome to Acme</h1><p>Dashboards and exports your whole team can trust.</p></body></html>
created: -2500h
- key: welcome-back
description: "Welcome postcard: back"
html: <html><body style="font-family:Helvetica"><p>Hi {{first_name}},</p><p>Welcome aboard! The Acme workspace for {{company}} is ready. Your first steps are in the getting-started guide at help.acme.example.</p><p>Questions? support@acme.example</p></body></html>
created: -2500h
letters:
- key: helix-october-invoice
to: helix-ap-old
description: "Helix Manufacturing: October invoice"
metadata:
customer: helix-manufacturing
invoice: october-2026
mergeVariables:
contact: Accounts Payable
customer: Helix Manufacturing
period: October 2026
amount_due: $1,200.00
due_date: on receipt
created: -118h
from: acme-billing
file:
template: invoice-letter
postcards:
- key: ridgeway-welcome
to: ridgeway-erin
description: Ridgeway Robotics pilot welcome
mergeVariables:
first_name: Erin
company: Ridgeway Robotics
created: -190h
useType: marketing
from: acme-billing
size: 6x9
front:
template: welcome-front
back:
template: welcome-back
checks:
- key: summit-refund
to: summit-billing
description: "Summit Freight: duplicate September charge"
metadata:
customer: summit-freight
created: -1406h
sendDate: -1382h
canceled: -1399h
from: acme-billing
bankAccount: acme-operating
amount: 1200
memo: "Refund: duplicate September charge"
checkNumber: 10041
Check what your agent did
Checks YAML
checks:
- id: address_created
trace:
called: POST /v1/addressesA test can name Lob with any of the other tools, and your agent works across them in one run.
All 43 toolsLob API mock FAQ
Will the Lob mock flag a missing apartment or suite number?
Seed a postal directory entry with a unit, then call POST / with the matching street address and no unit. The mock returns deliverability: deliverable_missing_unit.
How can I retry a Lob letter request without creating a second letter?
Reuse the Idempotency-Key header on the letter request. Within 24 hours of simulated time, the Lob mock returns the letter already created for that key.
When can an agent cancel a scheduled Lob letter?
In the mock, DELETE / cancels a scheduled letter before its send_date and returns deleted: true. A cancellation at or after that time returns not_deletable.
Install the CLI and run your agent against the Lob mock.
Ancha is not affiliated with Lob.