Use this file to discover all available pages before exploring further.
The client.campaigns service gives you read access to campaigns plus lifecycle actions — send now, schedule, and unschedule. Campaigns are authored in the Lettr app; the API does not expose create, update, or delete.Reads require an API key with the campaigns:read scope; actions require campaigns:write.
use lettr::Lettr;use lettr::campaigns::{ListCampaignsOptions, ListCampaignEventsOptions, ScheduleCampaignOptions, CampaignStatus, CampaignEventType};let client = Lettr::new("your-api-key");
// Send a draft campaign now (asynchronous; transitions to "preparing")client.campaigns.send("campaign-id").await?;// Schedule for future delivery — ISO 8601 with a timezone offset.client.campaigns.schedule( "campaign-id", ScheduleCampaignOptions::new("2026-06-01T09:00:00+00:00"),).await?;// Cancel a scheduled send, returning the campaign to draftclient.campaigns.unschedule("campaign-id").await?;
The action methods return Option<Campaign> — the SDK returns Some with the updated campaign, or None if the API omits the payload.