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 CampaignpostChoose A/B Test WinnerpostCreate Campaign VariationdelDelete Campaign VariationgetGet Email Stats by ProvidergetGet Local Send CoveragepostResume or Skip Held Mailbox ProviderputUpdate Campaign Message
Transactional Emails
Email MarketingCampaigns

Resume or Skip Held Mailbox Provider

View as MarkdownAgent setup

Answers the provider brake for one mailbox provider a campaign is holding. The brake holds a provider when more than 5% of its first sends bounce, or when its open rate by people falls under half of the sender's recent rate at the same point after sending; the reason is in providerSendState.lanes..held. resume sends its contacts and stops the brake holding it again in this campaign. skip never sends its remaining contacts. When the campaign is paused for held providers and none is left waiting, it resumes (or is SENT if every held provider was skipped).

POST
/projects/{projectId}/email-campaigns/{campaignId}/held-providers/{provider}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the campaign.

campaignIdrequiredstring

ID of the campaign holding the provider.

providerrequiredstring

The held mailbox provider, a key of providerSendState.lanes.

Value in: "gmail" | "google_workspace" | "outlook" | "microsoft_365" | "icloud" | "yahoo_aol" | "proton" | "zoho" | "other" | "unknown"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

actionrequiredstring

resume: send this provider's held contacts. skip: never send them.

Value in: "resume" | "skip"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/email-campaigns/string/held-providers/gmail" \  -H "Content-Type: application/json" \  -d '{    "action": "resume"  }'
{  "id": "string",  "createdAt": "string",  "updatedAt": "string",  "projectId": "string",  "name": "string",  "status": "DRAFT",  "type": "STANDARD",  "workflowId": "string",  "workflowStepId": "string",  "sentAt": "string",  "scheduleSetAt": "string",  "contactListId": "string",  "contactsFilterGroups": [],  "lastSuccessContactId": "string",  "lastSuccessContactCreatedAt": "string",  "sendCursor": {    "distinctId": "string",    "sortValue": "string"  },  "sendOrderByProperty": {    "direction": "asc",    "propertyKey": "string"  },  "providerSendState": {    "baseline": {      "computedAt": "string",      "providers": {        "property1": {          "aged": 0,          "personOpened": 0        },        "property2": {          "aged": 0,          "personOpened": 0        }      }    },    "checkedAt": "string",    "lanes": {      "property1": {        "deferred": true,        "held": {          "at": "string",          "finding": "string",          "kind": "bounces"        },        "passed": 0,        "released": true,        "skipped": true      },      "property2": {        "deferred": true,        "held": {          "at": "string",          "finding": "string",          "kind": "bounces"        },        "passed": 0,        "released": true,        "skipped": true      }    },    "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",    "winnerReason": "SIGNIFICANT",    "winnerSelectedAt": "string",    "winnerRolloutAt": "string",    "winnerWaitStartedAt": "string",    "status": "AWAITING_SAMPLE",    "samplePassStartedAt": "string"  },  "utmConfig": {    "enabled": true,    "params": {      "campaign": "",      "content": "",      "medium": "",      "source": "",      "term": ""    }  },  "localSendTimeZone": "string",  "localSendPendingAt": "string",  "localSendState": {    "day": 0,    "dayStartSendCount": 0,    "fallbackCursor": {      "distinctId": "string",      "sortValue": "string"    },    "fallbackDone": true,    "fallbackHeld": true,    "knownZoneSent": 0  },  "sendCount": 0,  "sendingTargetDurationMs": 0,  "sendPaginationCount": 0,  "messages": []}

Get Local Send Coverage

How a campaign's audience splits if it is sent in each contact's timezone (Send Email Campaign with `localSendTimeZone`). `localTime` counts the contacts whose timezone is known, from their `$timezone` attribute or else their country; each gets the email at the scheduled time on their own clock. `fallback` counts the contacts with no known timezone; they get it at the scheduled time in the zone it was picked in. Both count subscribed contacts only, with the project's sunset rules applied, so they add up to the number the send will email.

Update Campaign Message

Updates one campaign message's sender or content. Read Get Email Campaign for messages[].id, then pass campaignId, messageId, and changes. Supports STANDARD, AUTOMATION, and AB_TEST campaigns while DRAFT, SCHEDULED, or PAUSED; omitted fields are unchanged. On a SCHEDULED campaign, scheduledAt cannot change here: reschedule with Send Email Campaign or cancel with Cancel Scheduled Email Campaign. Use this endpoint to set fromEmailUsername, fromName, and fromDomain on workflow emails. Use Update Email Campaign for workflowId and workflowStepId links.