Direct mail API for developers and growth teams. Read the docs →

Direct mail API for roofers

Direct mail API for roofers: Mailr prints and mails postcards and letters from your own job records, whether they live in JobNimbus, AccuLynx, a CRM or a spreadsheet. A review card when a roof is finished, a warranty letter with the date to register it and a letter on an estimate that's gone quiet are each one API request, and storm cards go out as batches of up to 1,000 to the ZIP codes around a hail report. The same API key orders job-site yard signs and door-hanger-size cards. Test keys are free, so you can build it before anything prints.

Who builds this

Roofing companies rarely have a developer on staff, so this gets built by the marketing agencies that serve roofers, by the consultants who set up JobNimbus or AccuLynx and the automations around it, and by owners and office managers building their own tools with Claude Code or Cursor. They hang mail off job milestones and status changes, pull the morning's hail reports, merge their contacts with owner lists bought for the hit ZIP codes, and reorder the signs the crews stake at every job.

Who to mail

WhoWhy paper worksWhat to send
Homeowners after a hail or wind stormHail damage is hard to see from the ground, and most owners don't look until something leaks. A card that names the storm date gives them a reason to call while it's fresh.A 6x9 card within days of the storm, with its date and an inspection offer, to your contacts and a list you buy for those ZIP codes.
Homeowners with an open estimateA re-roof often waits on the adjuster or a second bid, and a letter on the kitchen table keeps your scope in front of them while they decide.An 8.5x11 letter 7 days after the estimate, restating the scope, the project manager's name and the number to call.
Customers with a new roofShingle warranties often have to be registered with the manufacturer, and the paperwork from install day gets lost.An 8.5x11 warranty letter with the completion date and the date to register by, then a 6x11 card on the roof's first anniversary offering a gutter and flashing check.
Neighbors of a finished roofThe dumpster, the trucks and the yard sign were on the street all week, and a card that same week tells the neighbors who did the work.A 6x9 card naming the roof done nearby, to addresses on a list you own or buy from a provider such as PropStream. One street is too small for Every Door Direct Mail, which takes whole carrier routes, as the neighborhood flyer comparison explains.
New owners of older homesA buyer inherits a roof they know little about, and the sale is in the county's public records within weeks.A 6x9 welcome card offering a roof inspection, mailed from county sale records.
Property managers and commercial ownersOne contact schedules inspections across many roofs, usually before storm season, and a letter on their desk gets you on that schedule.An 8.5x11 letter each spring with your inspection offer, your license number and the after-hours leak line.

What to mail, and when

When this happensMail thisPrice
A job closes: JobNimbus status Paid & Closed, or AccuLynx milestone CompletedA review card a week later, naming the work (new roof, storm repair) with a short link to your review page. (4x6 postcard, Review request)$0.85
A roof replacement is completedA warranty letter with the completion date, the shingle line and the date to register the manufacturer's warranty by. (8.5x11 letter)$0.95
An estimate has sat 7 days in JobNimbus's Estimate Sent status, or a job 14 days in AccuLynx's Prospect milestoneA letter restating the scope and the number to call. (8.5x11 letter)$0.95
The morning after a storm: hail of 1 inch or more reported near ZIP codes you serveAn inspection card with the storm date, to your contacts and a bought list in those ZIP codes, sent as batches of up to 1,000. (6x9 postcard)$0.89
A roof is finished: the neighbors on that street, from a list you own or buyA card naming the work done nearby and the number to book. (6x9 postcard)$0.89
A roof turns one year oldA card offering a gutter and flashing check, with the number to book. (6x11 postcard)$0.99
The county records a home sale in your service areaA welcome card to the new owner offering a roof inspection. (6x9 postcard)$0.89
Early spring: property managers and commercial accountsA letter offering inspections across their properties before storm season. (8.5x11 letter)$0.95

What to print

Printed and picked up free in Phoenix or shipped UPS Ground, ordered with POST /v1/prints.

PieceUsed forPay as you go
18x24 yard signJob-site signs with wire stands, staked from tear-off to cleanup, with your logo, license number and phone. Count each week's approved jobs and reorder from 10.$7.60–$11.20, from 10
4.25x11 rack cardDoor-hanger-size cards the crew leaves at the neighbors' doors the day the new roof goes on.$0.37, from 100
4x9 rack cardWarranty cards for the homeowner's folder: the shingle line, the install date and the number to call after a storm.$0.29, from 100
8.5x11 flyerStorm inspection one-pagers: what the crew checked, what happens at the adjuster meeting and what a replacement involves.$0.53, from 100

Systems to connect

  • JobNimbus. An hourly poll of jobs whose date_status_change is newer than the last run, checking status_name for your finished and estimate statuses, or Zapier's Job Modified trigger with a Filter step. Storm batches come from contacts in the hit ZIP codes.
  • AccuLynx. The job.milestone.current_changed webhook names the job and its new milestone (Approved, Completed, Invoiced). Read the job with includes=contact for the address and the primary contact, then mail.
  • CRM: GoHighLevel, HubSpot. A workflow webhook when a contact reaches a stage, such as inspection booked, estimate sent or job won.
  • Field-service software: Jobber, Housecall Pro. A job webhook or a poll of jobs completed since your last run, the same route home services companies use for review cards and tune-up reminders.
  • Storm reports: NOAA Storm Prediction Center. Each day's hail reports as a CSV with time, size, location, county, state, latitude and longitude. Sizes are in hundredths of an inch and every report is preliminary. Match each report to nearby ZIP codes with the Census Bureau's ZIP centroid file.
  • Owner lists: PropStream, DataZapp. A homeowner list bought for the hit ZIP codes, exported as CSV and merged with your own contacts. Mailr doesn't sell lists.
  • Permits and sales: city and county records. Where your city issues re-roof permits, the permit date tells you when a roof was last replaced, and the county recorder shows each new owner. The owner's mailing address comes from the assessor's parcel data.
  • Automation: Zapier or n8n. One HTTP step connects any of these to Mailr, without a server.
  • No software, or something else. Export a spreadsheet (name, address, any merge fields) and send it as one batch of up to 1,000.

Code: storm cards from hail reports, roof anniversaries and yard signs

# Each morning. Env: MAILR_API_KEY
# contacts.csv: your JobNimbus or AccuLynx contacts plus any list you bought, one row per home.
#   Columns: id, name, first_name, line1, line2, city, state, zip
# zcta.txt: the Census Bureau's Gazetteer file for ZIP Code Tabulation Areas (tab-separated:
#   GEOID, INTPTLAT, INTPTLONG, ...), downloaded once.
import csv, io, math, os
from datetime import date, timedelta

import requests

STATES = {"AZ", "NM"}   # where you work
MIN_SIZE = 100          # SPC sizes are hundredths of an inch: 100 = 1 inch
RADIUS = 3              # miles from a report to a ZIP code's center

spc = requests.get("https://www.spc.noaa.gov/climo/reports/yesterday_filtered_hail.csv", timeout=30)
spc.raise_for_status()
hits = [(float(r["Lat"]), float(r["Lon"])) for r in csv.DictReader(io.StringIO(spc.text))
        if r["State"] in STATES and r["Size"].isdigit() and int(r["Size"]) >= MIN_SIZE]

def miles(a, b):
    x = math.radians(b[1] - a[1]) * math.cos(math.radians((a[0] + b[0]) / 2))
    return 3959 * math.hypot(x, math.radians(b[0] - a[0]))

with open("zcta.txt", newline="") as f:
    rows = csv.DictReader(f, delimiter="\t")
    rows.fieldnames = [h.strip() for h in rows.fieldnames]
    zips = {r["GEOID"] for r in rows
            if any(miles((float(r["INTPTLAT"]), float(r["INTPTLONG"])), h) <= RADIUS for h in hits)}

seen, homes = set(), []
with open("contacts.csv", newline="") as f:
    for c in csv.DictReader(f):
        home = (c["line1"].strip().lower(), c["zip"][:5])
        if c["line1"] and c["zip"][:5] in zips and home not in seen:  # one card per address
            seen.add(home)
            homes.append(c)

storm = date.today() - timedelta(days=1)
for n, start in enumerate(range(0, len(homes), 1000)):  # one batch holds up to 1,000
    resp = requests.post(
        "https://api.mailr.dev/v1/batches",
        headers={
            "Authorization": f"Bearer {os.environ['MAILR_API_KEY']}",
            "Idempotency-Key": f"hail-{storm.isoformat()}-{n}",  # a re-run returns the same batch
        },
        json={
            "kind": "postcard",
            "size": "6x9",
            "front": open("mail/storm/front.html").read(),
            "back": open("mail/storm/back.html").read(),
            "merge": {"storm_date": f"{storm:%B} {storm.day}"},  # "November 21"
            "verify": True,  # check every address against USPS data before anything prints
            "recipients": [
                {
                    "to": {"name": c["name"][:40], "line1": c["line1"], "line2": c["line2"] or None,
                           "city": c["city"], "state": c["state"], "zip": c["zip"]},
                    "merge": {"first_name": c["first_name"][:14]},
                }
                for c in homes[start:start + 1000]
            ],
            "description": f"Hail inspection cards {storm.isoformat()}",
        },
        timeout=60,
    )
    resp.raise_for_status()
    print(resp.json()["id"], resp.json()["count"], resp.json()["price"])  # 1,000 cards: 890.00 pay as you go

What it costs

Hail storm inspection cards: 3,000 6x9 postcards at $0.89 each is $2,670.00 on pay as you go, including printing and postage. On Agency, the mailing costs $2,070.00. With the $149 monthly fee, the total for a month with just this mailing is $2,219.00. A 6x9 inspection card to 3,000 homes in the ZIP codes a storm hit, your contacts plus a bought list, sent as three batches of 1,000. Test pieces are free. All prices.

Questions

Where do the storm reports come from?

NOAA's Storm Prediction Center publishes each day's hail reports as a CSV: time, size, place, county, state, latitude and longitude. Sizes are in hundredths of an inch (175 means 1.75 inches), and SPC marks every report preliminary, so treat a report as a reason to look, not proof of damage. Match each report to the ZIP codes around it, then mail the homes you have addresses for.

Can I mail every house in the hail path?

Only the addresses you have: your JobNimbus or AccuLynx contacts in those ZIP codes and an owner list you buy, from PropStream or DataZapp for example. Mailr doesn't sell lists. Remove duplicate addresses, add "verify": true to check each one against USPS data, and send up to 1,000 per batch.

What does a storm mailing cost?

A 6x9 postcard is $0.89 pay as you go, printing and postage included, so 3,000 inspection cards cost $2,670. On the Agency plan ($149 a month) the card is $0.69, or $2,070. Test pieces are free and never print.

Which JobNimbus or AccuLynx event should send the warranty letter?

In JobNimbus, a job's status changing to your finished status, such as Paid & Closed, caught by an hourly poll on date_status_change. In AccuLynx, the job.milestone.current_changed webhook with the new milestone Completed. Build the Idempotency-Key from the job id so a retry never mails twice.

Will a second report from the same storm mail the same house twice?

Not if you keep the addresses you mailed for each storm and skip them on the next run. The Idempotency-Key only stops a repeat of the same request within 24 hours; a new hail report the next morning is a new request.

How much are yard signs?

18x24 signs start at 10: $11.20 each pay as you go up to 100, $9.60 from 101 and $7.60 from 251, plus $1.20 for each wire stand. They're printed in Phoenix, picked up free or shipped UPS Ground in the lower 48, priced for your address before you pay.

ROOFERS

Build mail for roofers today

Get a free test key, send a test postcard or print order, and watch it move through every status.

Start sending
  • Postcards, flats and folded mailers
  • A proof before anything prints
  • Free test mode: nothing prints, nothing charges
  • A status for every piece

Free price sheet

Get the price sheet by email

Every postcard, letter, mailer and print product on every plan, with postage included.

We’ll email you the price sheet. By continuing you agree to the Terms and Privacy Policy.

Download the template kit?

mailr-kit.zip · about 310 KB · 59 text files

Only HTML, JSON and Markdown files. No programs, scripts or macros, nothing that installs or runs.