Direct mail API blog
Guides for developers who send mail from code: working examples in Node, Python and cURL, real prices, and the traps we hit along the way.
Page 2 of 6
ConnectorsMailrConnectedhttps://mailr.dev/mcp+ Add custom connectorIntegrationsClaude connectors: add a custom connector by URL, with a direct mail API as the exampleDirectory and custom connectors, adding one by URL, which plans allow it and who adds them, tool permissions, and Mailr's direct mail connector in use.Mailr team4 min read$ claude mcp add \ --transport http mailr \ https://mailr.dev/mcp> /mcp · signed inDevelopersClaude Code MCP: add a remote server, sign in, and set permissions, with a direct mail API as the exampleclaude mcp add in one line, local, project and user scopes, signing in with /mcp, permission rules for MCP tools, and Mailr's server as the worked example.Mailr team4 min readconfig.toml[mcp_servers.mailr]url = "https://mailr.dev/mcp"CLIIDEChatGPT appDevelopersCodex MCP: add a remote server, sign in, and set approvals, with a direct mail API as the examplecodex mcp add and codex mcp login, the config.toml entry the CLI, IDE extension and ChatGPT desktop app share, approvals for write tools, and a worked example.Mailr team3 min read85281-123456ZIP+4: one buildingdelivery pointLists and dataZIP+4 lookup: what the extra four digits mean, and adding them to a list by APIThe sector and segment after a ZIP Code, the free USPS lookup for one address, a ZIP+4 for every row of a list by API, and whether mail needs it at all.Mailr team4 min readLists and dataCommercial mail receiving agency (CMRA) addresses: what they are, and mailing them by APIPrivate mailbox addresses: the PMB or # rule, the R1 and RR footnotes that flag them in a list, and why NCOA never sees a CMRA customer move.Mailr team4 min readACME BAKERY15% offK7QM-2XPAOne use eachDesign and personalizationCoupon mailers by API: a postcard coupon each household can use onceShared coupon mailers next to your own postcard, what the coupon says, a one-use code or barcode per household, counting redemptions, cost and the script.Mailr team5 min readPRSRT STDU.S. POSTAGEPAIDPERMIT NO. 1234USPS Marketing MailUSPS and postagePresorted standard mail: what PRSRT STD means, and how API mail gets presort pricesPRSRT STD is USPS Marketing Mail by its pre-2017 name. Presorting, presorted First-Class next to it, ECRWSS and the other markings, and 2026 prices.Mailr team4 min readDANA COLENORTHWIND500 MAIN ST STE 400Suite foundIntegrationsB2B direct mail by API: cards and letters to the accounts your team is workingOffice addresses from your CRM, ZoomInfo, Apollo or Clay, the suite and home-address checks, which account stages send what, formats and the script.Mailr team6 min readWelcome to theneighborhood!Lists and dataNew homeowner mailing list: build one from recorded sales and mail it by APIRecorded sales and the assessor's mailing address tell you who moved in. When to mail, what the welcome card says, and a daily job that sends it.Mailr team6 min read
START SENDING
Put your first postcard in the mail
Create a key, send a test to yourself, and check the proof before anything prints.
- Postcards, flats and folded mailers
- A proof before anything prints
- Free test mode: nothing prints, nothing charges
- A status for every piece