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

Parameters: get_campaign_report
NameTypeDescription
campaign_id string required string Campaign ID from list_campaigns.

Request

cURL
curl https://cotlet.dev/api/v1/campaign-monitor/campaigns/a41f7c9e2d8b4e60b3a1c5d7e9f20814/report \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("campaign-monitor", "get_campaign_report", {"campaign_id":"a41f7c9e2d8b4e60b3a1c5d7e9f20814"})
Node.js
const result = await cotlet.call('campaign-monitor', 'get_campaign_report', {"campaign_id":"a41f7c9e2d8b4e60b3a1c5d7e9f20814"});
CLI
cotlet call campaign-monitor get_campaign_report --data '{"campaign_id":"a41f7c9e2d8b4e60b3a1c5d7e9f20814"}'

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.