rootmail

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/campaigns
POST/v1/campaigns
GET/v1/campaigns/:id
PATCH/v1/campaigns/:id
POST/v1/campaigns/:id/send
GET/v1/campaigns/:id/analytics
DELETE/v1/campaigns/:id
campaign.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);