Get a campaign report
Reads the Snapshot of a sent campaign.
GET https://cotlet.dev/api/v1/campaign-monitor/campaigns/{campaign_id}/report
read
Returns Delivered, Bounced, Opened, Clicked, Unsubscribes, Marked as Spam and Shares. Rates are percentages of Delivered, as on the Snapshot page. Opens are estimates, because Apple Mail Privacy Protection can raise them. Needs the reports permission.
Parameters
| Name | Type | Description |
|---|---|---|
| campaign_id string required | string | Campaign ID from list_campaigns. |
Request
curl https://cotlet.dev/api/v1/campaign-monitor/campaigns/a41f7c9e2d8b4e60b3a1c5d7e9f20814/report \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("campaign-monitor", "get_campaign_report", {"campaign_id":"a41f7c9e2d8b4e60b3a1c5d7e9f20814"}) const result = await cotlet.call('campaign-monitor', 'get_campaign_report', {"campaign_id":"a41f7c9e2d8b4e60b3a1c5d7e9f20814"}); cotlet call campaign-monitor get_campaign_report --data '{"campaign_id":"a41f7c9e2d8b4e60b3a1c5d7e9f20814"}' Example response
{
"campaign_id": "a41f7c9e2d8b4e60b3a1c5d7e9f20814",
"name": "October newsletter",
"sent": 12480,
"delivered": 12310,
"bounced": 170,
"opened_pct": 41.2,
"clicked_pct": 4.8,
"unsubscribes_pct": 0.2,
"spam_pct": 0.01,
"shares": 38
}