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

Cancel Scheduled Email Campaign

View as MarkdownAgent setup

Cancels a scheduled send. The campaign returns to DRAFT with its scheduledAt cleared and nothing is sent. Edit it and call Send Email Campaign to send or schedule it again. Only a SCHEDULED campaign can be cancelled; to change the time instead, call Send Email Campaign with a new scheduledAt.

POST
/projects/{projectId}/email-campaigns/{campaignId}/cancel-schedule

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the campaign.

campaignIdrequiredstring

ID of the scheduled campaign to cancel.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/email-campaigns/string/cancel-schedule"
{  "id": "string",  "createdAt": "string",  "updatedAt": "string",  "projectId": "string",  "name": "string",  "status": "DRAFT",  "type": "STANDARD",  "workflowId": "string",  "workflowStepId": "string",  "sentAt": "string",  "contactListId": "string",  "contactsFilterGroups": [],  "lastSuccessContactId": "string",  "lastSuccessContactCreatedAt": "string",  "sendCursor": {    "distinctId": "string",    "sortValue": "string"  },  "sendOrderByProperty": {    "direction": "asc",    "propertyKey": "string"  },  "providerSendState": {    "checkedAt": "string",    "lanes": {      "property1": {        "deferred": true,        "passed": 0,        "slowed": {          "at": "string",          "finding": "string"        }      },      "property2": {        "deferred": true,        "passed": 0,        "slowed": {          "at": "string",          "finding": "string"        }      }    },    "pausedForProviders": true,    "rescanFrom": {      "cursor": {        "distinctId": "string",        "sortValue": "string"      }    },    "slowPass": true  },  "abTestConfig": {    "variable": "SUBJECT",    "samplePercent": 20,    "winnerMetric": "OPEN_RATE",    "winnerWaitHours": 4,    "winnerWaitUnit": "HOURS",    "sendTimeDelayHours": 2,    "sendTimeDelayUnit": "HOURS",    "winnerMessageId": "string",    "winnerSelectedAt": "string",    "winnerRolloutAt": "string",    "winnerWaitStartedAt": "string",    "status": "AWAITING_SAMPLE",    "samplePaginationEnd": 0  },  "utmConfig": {    "enabled": true,    "params": {      "campaign": "",      "content": "",      "medium": "",      "source": "",      "term": ""    }  },  "sendCount": 0,  "sendingTargetDurationMs": 0,  "sendPaginationCount": 0,  "messages": []}

Get Email Stats

Aggregate delivery and engagement figures for one campaign: sent, delivered, opened, clicked, bounced, complained, and delivery-delayed. Each comes back as a raw `total`, a `unique` count that collapses repeat events from the same recipient, and a `rate`, so open rate is not just opens divided by sends. For the per-recipient breakdown behind these numbers use List Emails.

Create Campaign Variation

Adds a variation to a draft or paused campaign. The new variation copies the first one, then applies `changes`. Same content fields as Update Campaign Message, including subjectHTML, subjectJSON, bodyHTML, bodyJSON, previewTextHTML, and previewTextJSON. A second variation on a STANDARD campaign sets the type to AB_TEST. Returns the variation and a permalink that opens the message step in the editor.