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.
// Send a draft campaign now (asynchronous; transitions to "preparing")sent, err := client.Campaigns.Send(ctx, "campaign-id")// Schedule for future delivery — ISO 8601 with a timezone offset.// Calling Schedule again on a scheduled campaign reschedules it.scheduled, err := client.Campaigns.Schedule(ctx, "campaign-id", &lettr.ScheduleCampaignRequest{ ScheduledAt: "2026-06-01T09:00:00+00:00",})// Cancel a scheduled send, returning the campaign to draft_, err = client.Campaigns.Unschedule(ctx, "campaign-id")