Get campaign report

Delivery and engagement numbers of one sent campaign.

GET https://cotlet.dev/api/v1/mailjet/campaigns/{campaign_id}/report

read

Returns what the Overview tab of the campaign statistics shows: send date, subject, list, segment and sender, then delivered, opened, clicked, unsubscribed, marked as spam, blocked, soft-bounced and hard-bounced counts. A campaign still collecting opens returns the numbers so far. A draft has no report and returns an error.

Parameters

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

Request

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

Example response

JSON

{
  "campaign_id": 7164820931,
  "name": "Autumn offer",
  "subject": "Autumn offer: 20% off your next loaf",
  "sent_at": "2026-10-14T08:00:00+01:00",
  "list": "Newsletter",
  "segment": null,
  "sender": "Northside Bakery <hello@northside.example>",
  "delivered": 1840,
  "opened": 702,
  "clicked": 96,
  "unsubscribed": 9,
  "marked_as_spam": 1,
  "blocked": 6,
  "soft_bounced": 4,
  "hard_bounced": 2
}

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.