Direct Mail API Sample Requests for Different Programming Languages
Easily complete actions using the preferred languages to integrate the API into the tech stack.
- Create Letter
- Create Letter With Template
- Create Letter With Template and Attached PDF
- Create Letter With PDF
- List Letters
- Cancel Letter
cURL
Loading
cURL
Loading
cURL
Loading
cURL
Loading
cURL
Loading
cURL
Loading
Benefits of Direct Mail API
- Fully Automated
- Enterprise-Grade Security
- Faster Turnaround
- Best-in-Class Pricing
- Omnichannel Campaigns
- Campaign Insights
- Better Data Quality
Fully Automated
Trigger physical communications using CRM events or launch campaigns whenever needed, whether you want to send welcome letters, marketing postcards, monthly statements, invoices, or anything else.
Enterprise-Grade Security
Keep your customer and organization data secure and confidential while getting access to detailed audit logs.
Faster Turnaround
Set up campaigns in minutes, not months. Unlock our 2-day industry-leading SLA to launch and execute physical communications in a short timeline.
Best-in-Class Pricing
Print and mail transactional, compliance, and marketing communications at transparent, competitive prices.
Omnichannel Campaigns
Combine direct mail with online marketing channels by integrating PostGrid into your marketing CRMs, like HubSpot, Salesforce, and more.
Campaign Insights
Know how well campaigns performed and what can be changed by accessing detailed reports and analytics for all mailings.
Better Data Quality
Always send mailings to correct, updated addresses to reduce returned items and save on reshipping expenses.
Select the Right Format for Every Campaign
Create, print, and mail different mail collateral using a single API or dashboard
Postcards
Letters
Checks
Self-Mailers
Plastic Card Inserts
Snap Packs
Enterprise-Grade Compliance and Data Security
HIPAA
PIPEDA
GDPR
From API Call to Mailbox in Three Moves
Our Direct Mail API can turn your CRM events into an end-to-end Print & Mail process, covering creation, printing, and delivery altogether.
Connect
Integrate our REST API into your CRM using our detailed API docs.
Trigger
Set up campaigns via API calls whenever needed. Millions of API requests can be processed simultaneously.
Print and Deliver
Create and send physical communications online without manual intervention. Stay updated with real-time tracking webhooks.
Direct Mail API Integrations for Your Tech Stack
Connect the API with the platform seamlessly to trigger physical communications from the existing workflows.
ActiveCampaign
Bring direct mail into your marketing automation. Combine email, SMS, and physical communications into a single, coordinated experience, without ever leaving ActiveCampaign.
Integrates with Your Favorite Tech Stack & Tools
Easily Improve your workflow and automate print & mail through seamless integration capabilities.
Frequently Asked Questions
What is a Direct Mail API?
It is a REST API that allows developers to programmatically create, print, and ship physical communications from their existing tech stack. They can use the API docs to integrate natively with popular platforms such as Salesforce, QuickBooks, HubSpot, Zapier, etc. Some Direct Mail APIs, like PostGrid, also enable custom integrations.
What Does a Direct Mail API Do?
It allows you to automate compliance, transactional, and marketing communications online. Thus, you don’t need to work with different vendors or handle manual tasks internally.
Is the Direct Mail API Ideal for Multiple Touchpoints or One-Time Mailings?
You can send any number of mail pieces you want for any number of events. You can set up triggers to print and send mailings to the same customers on different events, like post-deal close, customer milestones, inquiry actions, etc. Also, you can send bulk mailings to a contact list under a one-off campaign. The choice is yours; the Direct Mail API makes your vision possible.
What's the Most Dev-Friendly Direct Mail API?
PostGrid has a 5-star rating on G2, making it the best Direct Mail API for developers. It offers detailed API documentation in various programming languages, like Go, Java, Ruby, Node.js, and many more. Both test and live keys are available.
How Can PostGrid Be Integrated With HubSpot, Salesforce, or Another Platform?
There is no custom coding required to connect with these platforms, as you can integrate our Direct Mail API into them natively. Hence, you can trigger physical communications via our REST API from any CRM that can support outbound HTTP calls or Zapier/Make.
What Is the Delivery Timeline After an API Request Is Submitted?
You can have your mail items printed and handed over for delivery to the USPS or Canada Post within two business days. Then, the delivery timeline depends on the mailing class you selected. For example, First-Class Mail typically takes one to five business days to arrive.
Does PostGrid's Direct Mail Comply With HIPAA?
Yes. PostGrid is HIPAA, PIPEDA, and SOC-2 Type 2-compliant. It is used by several regulated industries with signed Business Associate Agreements (BAAs).
Does PostGrid Allow Developers to Test Its Solutions Before Switching to Live Mode?
Yes. PostGrid provides a full-featured sandbox with test API keys for free. Thus, you can create different mail formats, like letters, postcards, and checks, to see how it works, without actually printing and sending anything or getting billed.
How Can I Get Started With PostGrid’s Direct Mail API?
You can sign up and get your test API keys. You can leverage our quickstart guide and install an SDK to send your test postcard or letter in a few minutes. Our free tier includes full dashboard access and up to 100 test API requests.
Featured In
Media & Press
Ready to Get Started?
Start transforming and automating your offline communications with PostGrid
























