Use this file to discover all available pages before exploring further.
The client.campaigns resource gives you read access to campaigns plus lifecycle actions — send now, schedule, and unschedule. Campaigns are created and edited in the Lettr dashboard; the API does not expose create, update, or delete.Reads require an API key with the campaigns:read scope; actions require campaigns:write.
// Dispatch a draft campaign immediately (asynchronous; transitions to "preparing")await client.campaigns.send("campaign-uuid");// Schedule for future delivery — ISO-8601 timestamp.// Calling schedule() again on a scheduled campaign reschedules it.await client.campaigns.schedule("campaign-uuid", { scheduled_at: "2026-06-01T09:00:00Z" });// Cancel a scheduled send, returning the campaign to draftawait client.campaigns.unschedule("campaign-uuid");
Action methods resolve to a CampaignActionResponse with a message and an optional data (the updated CampaignSummary).