Marketing
Campaigns
Send one email to a whole audience, and measure how it lands.
A campaign is a one-time send to an audience — a newsletter, an announcement. Create it, then send (or schedule) it; suppressed and unsubscribed contacts are skipped automatically.
GET
/v1/campaignsPOST
/v1/campaignsGET
/v1/campaigns/:idPATCH
/v1/campaigns/:idPOST
/v1/campaigns/:id/sendGET
/v1/campaigns/:id/analyticsDELETE
/v1/campaigns/:idcampaign.ts
const c = await mail.campaigns.create({
name: "March newsletter",
listId: list.id,
templateId: tmpl.id,
});
await mail.campaigns.send(c.id, { sendAt: "2026-03-01T15:00:00Z" });
const funnel = await mail.campaigns.analytics(c.id);