Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedAgent setupWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference
Skills for agents

REST API

Quick start
getList Email CampaignsgetGet Email CampaignpostCreate Email CampaignputUpdate Email CampaignpostDuplicate Email CampaigndelDelete Email CampaignpostSend Email CampaignpostResume Sending Email CampaignpostStop Sending Email CampaignpostSend Test EmailgetCount Campaign EmailsgetGet Email StatspostCancel Scheduled Email CampaignpostCreate Campaign VariationdelDelete Campaign VariationgetGet Email Stats by ProviderputUpdate Campaign Message
Transactional Emails
Email MarketingCampaigns

Delete Email Campaign

View as MarkdownAgent setup

Permanently deletes a campaign and its messages. Deleting a workflow campaign also removes its Send Campaign step and reconnects the workflow around it. Only campaigns still in DRAFT can be deleted. Once a campaign has started sending it is rejected with 400, so delivery history is never destroyed this way. Cannot be undone.

DELETE
/projects/{projectId}/email-campaigns/{campaignId}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the campaign.

campaignIdrequiredstring

ID of the campaign to delete.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/projects/string/email-campaigns/string"
{  "message": "string"}

Duplicate Email Campaign

Copies a campaign (its messages, audience, sending speed, UTM tags, and other settings) into a new DRAFT. The copy is named `"<original> (Copy)"`, incrementing to `(Copy 2)` and beyond if that name is taken. Send counts, sent timestamps, and any A/B winner are reset, so the duplicate behaves like a fresh campaign rather than inheriting the original's results.

Send Email Campaign

Sends a campaign to its audience now, or schedules it. Pass `scheduledAt` (a future ISO 8601 timestamp with a timezone offset, at most one year ahead) to schedule a STANDARD campaign: it moves to SCHEDULED and starts sending at that time. Pass `scheduledAt: null` to send now. Omit it to use the message's stored `scheduledAt`: a future value schedules, and a value that has already passed sends now. A/B tests cannot be scheduled this way; they start now and the SEND_TIME variable times each variation. Only a DRAFT or SCHEDULED campaign can be sent. Calling this on a SCHEDULED campaign reschedules it, or sends it now with `scheduledAt: null`. A paused campaign continues with Resume Sending Email Campaign instead; any other status returns 400. The campaign is validated (missing subject, sender, or audience returns 400 with the specific problems listed) and the project must have an unblocked sender and enough balance. A scheduled send repeats those checks when it starts; if one fails, the campaign returns to DRAFT and nothing is sent. Sending runs in the background in batches, so a 200 means the send has started or been scheduled, not that it has finished; poll Get Email Campaign for progress. Emails already on their way cannot be recalled.