Loading...
Loading...
Integrate direct mail into your applications, CRMs, and marketing automation workflows. Trigger postcards, letters, and flyers with a single API call.
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);Clean, well-documented REST endpoints with JSON request/response format. Supports pagination, filtering, and sorting.
Secure API key-based auth with scoped permissions. Generate and manage keys from your dashboard.
Real-time event notifications for campaign status changes, delivery confirmations, and payment events.
Generous rate limits with clear headers. Enterprise plans include higher limits and dedicated throughput.
Sub-200ms response times for most endpoints. Campaign creation and audience building are processed asynchronously.
Full API reference with examples in cURL, JavaScript, Python, and Ruby. Interactive API explorer included.
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.
Get your API key from your dashboard settings and start sending direct mail programmatically today.

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