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

Send Email Campaign

View as MarkdownAgent setup

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.

POST
/projects/{projectId}/email-campaigns/{campaignId}/send

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the campaign.

campaignIdrequiredstring

ID of the campaign to send.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

scheduledAtstring | null

When to start sending a STANDARD campaign, as a future ISO 8601 timestamp with a timezone offset. Null sends now. Omitted uses the message's stored scheduledAt.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/email-campaigns/string/send" \  -H "Content-Type: application/json" \  -d '{}'
{  "message": "string",  "scheduledAt": "string"}

Delete Email Campaign

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.

Resume Sending Email Campaign

Resumes a paused campaign. Sending continues from the contact pagination cursor where it stopped, so recipients already sent to are not emailed twice. Requires sufficient project balance and an unblocked sender, the same as Send Email Campaign.