Direct mail API for law firms
Direct mail API for law firms in estate planning, family, business, immigration and personal injury: one request mails a letter when a consultation is booked or a card when a matter closes, a scheduled job sends review letters years later, and one batch invites up to 1,000 people to a seminar, triggered by your practice management or intake system's webhooks or a client export. The same key orders seminar flyers and table cards.
Who builds this
Legal-tech consultants and in-house developers at multi-office firms who already sync matters and contacts into their own database. Marketing agencies running intake and referral programs for estate planning, family, business, immigration and personal-injury firms. Intake, CRM and practice management products that want a mail step beside email and text. They wire a trigger on matter and intake changes, a scheduled job for date-based reminders (plan reviews, annual reports, immigration dates), and a print order before each seminar.
Who to mail
| Who | Why paper works | What to send |
|---|---|---|
| Estate planning clients | The plan sits in a binder for years, and a card at the right moment brings them back to update it. | A 6x9 thank-you card when the matter closes, and an 8.5x11 review letter three years later. |
| People with a consultation booked | A letter before the meeting puts the address, the parking and the document list in their hands. | An 8.5x11 letter signed by the attorney: date, address, what to bring. |
| Intake leads who didn't hire | People comparing firms keep paper, and a short note from the attorney they met stays in the pile. | A 6x9 card a week after the consultation, sent only to people who contacted the firm. |
| Business clients | Owners forget annual reports and agreement reviews until something goes wrong. | A 4x6 reminder before the company's state annual report is due. |
| Immigration clients | The dates that matter come years after the case closes, when an email address may have changed. | A 6x9 card asking them to call about an upcoming date in their case, with no status or form names on it. |
| Referral sources | CPAs, financial advisors and other attorneys refer to the lawyer who thanks them. | A 6x9 thank-you card when a referred matter opens, and an invitation to every seminar. |
What to mail, and when
| When this happens | Mail this | Price |
|---|---|---|
| A consultation is booked | A letter from the attorney with the date, the office address, parking and what to bring. (8.5x11 letter) | $0.95 |
| A consultation ends and the lead doesn't hire within a week | A short card from the attorney they met: the direct line and an offer to answer questions. (6x9 postcard) | $0.89 |
| An estate planning matter closes | A thank-you card from the attorney, asking who else should have a plan. (6x9 postcard) | $0.89 |
| Three years after an estate plan was signed | A review letter listing life changes worth a meeting: marriage, a new child or grandchild, a move, a business sale. Nothing about the plan's contents. (8.5x11 letter) | $0.95 |
| Six months after a family law matter closes | A card suggesting they update their will, powers of attorney and beneficiaries, with nothing about the case. (4x6 postcard) | $0.85 |
| 30 days before a business client's state annual report is due | A reminder card with the due date and an offer to file it. (4x6 postcard) | $0.85 |
| An immigration date opens: 90 days before a permanent resident can file for naturalization, or 90 days before a two-year conditional card expires | A card asking them to call about an upcoming date in their case. (6x9 postcard) | $0.89 |
| Three weeks before an estate planning seminar | An invitation to past clients, prospects and referral partners. (5.5x8.5 postcard, Event invite) | $0.89 |
What to print
Printed and picked up free in Phoenix or shipped UPS Ground, ordered with POST /v1/prints.
| Piece | Used for | Price |
|---|---|---|
| 8.5x11 flyer | Seminar handouts: the estate planning checklist, a will-versus-trust one-pager. | $0.53, from 100 |
| 5x7 table card | Seminar tables and the reception desk: the booking QR code and the firm's practice areas. | $0.29, from 100 |
| 18x24 poster | An easel sign at the seminar room door, from one poster. | $9.60 |
| 4x9 rack card | Practice-area cards for the lobby and for referral partners' offices. | $0.26, from 100 |
Systems to connect
- Practice management: Clio, MyCase, PracticePanther, Smokeball. Clio sends signed webhooks for matters (created, updated, matter_opened, matter_pended, matter_closed) and contacts; they expire after at most 31 days, so renew them on a schedule. MyCase (Advanced tier) and PracticePanther have APIs to poll for matters updated since your last run.
- Intake and CRM: Lawmatics, Clio Grow. Lawmatics sends signed webhooks such as matter.stage_changed, matter.status_changed and form.submitted on Premium plans. Clio Grow's API lists leads, contacts and matters to poll.
- Zapier, Make or n8n. When an intake form, stage or matter status changes, a step calls POST /v1/flats or /v1/postcards with the contact's address.
- No software, or something else. Export past clients or seminar contacts as a spreadsheet and send it as a batch of up to 1,000 per request.
Code: a card when a matter closes, and seminar invitations
// Call this from whatever closes a matter: a practice-management webhook, a nightly job, a button.
// matter and client are your own records.
import { readFile } from "node:fs/promises";
const front = await readFile("mail/estate-thank-you/front.html", "utf8"); // {{first_name}}, {{attorney}}
const back = await readFile("mail/estate-thank-you/back.html", "utf8");
export async function onMatterClosed(matter, client) {
if (matter.practice_area !== "Estate Planning" || matter.thank_you_card_id) return;
const res = await fetch("https://api.mailr.dev/v1/postcards", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MAILR_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": `matter-closed-${matter.id}`, // a re-delivered webhook can't mail twice
},
body: JSON.stringify({
size: "6x9",
front,
back,
to: {
name: client.name,
line1: client.line1,
...(client.line2 ? { line2: client.line2 } : {}),
city: client.city,
state: client.state,
zip: client.zip,
},
merge: { first_name: client.first_name.slice(0, 14), attorney: matter.attorney_name },
description: `Estate plan thank-you: matter ${matter.id}`, // no matter details on the card itself
}),
});
const card = await res.json();
if (!res.ok) throw new Error(card.error.message);
await saveOnMatter(matter.id, { thank_you_card_id: card.id }); // your own update
await scheduleReviewLetter(client.id, addYears(matter.closed_on, 3)); // the review letter, three years out
}What it costs
Estate plan review letters to 300 past clients: 300 8.5x11 letters at $0.95 each is $285.00 on pay as you go, or $276.00 on the Agency plan, printing and postage included. Estate planning matters closed three or more years ago, one letter per client, sent as one POST /v1/batches. The letter asks for a review meeting and says nothing about what's in the plan. Test pieces are free. All prices.
Questions
Is a postcard or flat letter private enough for client mail?
Only for what can be read by anyone: postcards and letters mail flat with no envelope. Use them for thank-yous, reminders and invitations that say nothing about the matter. Engagement letters, documents and anything privileged go through the client portal or your own sealed mail.
Can we mail personal-injury leads?
Mail people who contacted the firm, at the address they gave you. Mailr doesn't sell lists or accident reports. State bar rules govern written solicitation, and many states require labels or waiting periods, so keep whatever your state requires on the design.
What does a seminar mailing cost?
Pay as you go: 5.5x8.5 invitations are $0.89 each, so 1,000 is $890, printing and postage included. For the room, 100 table cards are $29, 100 flyers $53 and an 18x24 easel poster $9.60. Pickup in Phoenix is free, and POST /v1/prints/quote prices UPS Ground to your office.
Can the letter carry the attorney's signature?
Yes. The design is HTML at true size, so a signature image, the firm's letterhead and fonts go in like any web page. Mailr prints the recipient and return address in the address panel; the rest of the page is yours.
How do date-based reminders work years after a matter closes?
Store the date that matters (plan signed, annual report due, a residency date) on your own record and run a daily job that mails when it comes due. Send an Idempotency-Key built from the record and the date so a rerun never mails twice, and save the returned id.