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

Get Email Stats by Provider

View as MarkdownAgent setup

The campaign's sent, delivered, bounced, complained, opened, and clicked recipients split by mailbox provider (Gmail, Google Workspace, Outlook, Microsoft 365, iCloud, Yahoo/AOL, Proton, Zoho, other, unknown), read from each recipient domain's mail host, plus the same counts for the 20 recipient domains with the most sends. Opens and clicks that look automated (Apple Mail Privacy, Microsoft Safe Links, security scanners) are also counted in machineOpened and machineClicked, so clicked minus machineClicked is clicks by people.

GET
/projects/{projectId}/email-campaigns/{campaignId}/provider-stats

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the campaign.

campaignIdrequiredstring

ID of the campaign to report on.

Query Parameters

dateFromstring

Only count events on or after this YYYY-MM-DD date. Omit for the campaign's whole lifetime.

dateTostring

Only count events on or before this YYYY-MM-DD date.

messageIdstring

Only count sends of this message (an A/B version). Omit for every message.

sendPhasestring

Only count A/B sample sends (sample) or the winner rollout (rollout). Omit for both.

Value in: "sample" | "rollout"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/projects/string/email-campaigns/string/provider-stats"
{  "domains": [    {      "bounced": 0,      "clicked": 0,      "complained": 0,      "delivered": 0,      "machineClicked": 0,      "machineOpened": 0,      "opened": 0,      "sent": 0,      "domain": "string",      "provider": "gmail"    }  ],  "providers": [    {      "bounced": 0,      "clicked": 0,      "complained": 0,      "delivered": 0,      "machineClicked": 0,      "machineOpened": 0,      "opened": 0,      "sent": 0,      "machineReason": "apple_mail_privacy",      "provider": "gmail"    }  ],  "unresolvedDomains": 0}

Delete Campaign Variation

Deletes one variation from a draft or paused campaign. The campaign must keep at least one variation. Deleting the last extra variation on an AB_TEST campaign sets the type back to STANDARD. Returns a permalink that opens the message step in the editor.

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.