Send direct mail programmatically
Integrate direct mail into your applications, CRMs, and marketing automation workflows. Trigger postcards, letters, and flyers with a single API call.
Up and running in minutes
Create your first campaign with just a few lines of code.
const response = await fetch('https://api.directmailsolutions.ca/api/campaigns', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
mailType: 'postcards',
quantity: 5000,
audience: {
type: 'neighbourhood',
postalCode: 'M5V 2T6',
radiusKm: 5,
},
design: {
templateSlug: 'restaurant-grand-opening',
},
}),
});
const { campaign } = await response.json();
console.log('Campaign created:', campaign.id);Everything you need to integrate
RESTful API
Clean, well-documented REST endpoints with JSON request/response format. Supports pagination, filtering, and sorting.
API Key Authentication
Secure API key-based auth with scoped permissions. Generate and manage keys from your dashboard.
Webhooks
Real-time event notifications for campaign status changes, delivery confirmations, and payment events.
Rate Limiting
Generous rate limits with clear headers. Enterprise plans include higher limits and dedicated throughput.
Fast Response Times
Sub-200ms response times for most endpoints. Campaign creation and audience building are processed asynchronously.
Comprehensive Docs
Full API reference with examples in cURL, JavaScript, Python, and Ruby. Interactive API explorer included.
Core API endpoints
A preview of the most-used endpoints. Full documentation available in the help center.
/api/campaignsCreate a new direct mail campaign with audience targeting and design options.
/api/campaigns/:idRetrieve campaign details including status, delivery tracking, and analytics.
/api/audiencesBuild targeted audiences using demographic, geographic, and behavioral filters.
/api/pricing/quoteGet instant pricing quotes for any mail type, quantity, and targeting combination.
/api/webhooksReceive real-time notifications for campaign status changes and delivery events.
/api/analytics/:campaignIdAccess response rates, QR scan data, and ROI metrics for completed campaigns.
Ready to integrate?
Get your API key from your dashboard settings and start sending direct mail programmatically today.

Ready to Launch Your Campaign?
Stop losing customers to competitors with better marketing. Get a free, no-obligation quote and start reaching Canadian homeowners this week.