Get the report of an email campaign
GET /campaigns/{uuid}/report
/campaigns/{uuid}/reportReturns the performance report of a sent email campaign, the same one the Customer App shows: delivery, opens, clicks, click-to-open rate (CTOR), bounces, unsubscribes and spam complaints, each with its rate, its counts, how it compares with the average of your audience and with the reference of your industry (good, attention or critical), plus orders and revenue, the first 24 hours hour by hour, the most clicked links and where the opens come from (device, email client and country).
When to use: To answer "how did my campaign go?", to judge a sent campaign against your industry, or to see when the opens and clicks happened and which links were clicked.
When not to use: For the plain counters of a campaign, get_campaign (campaign_stats) is enough. To find the UUID, use list_campaigns. SMS campaigns have no report. Campaigns that are still a draft, scheduled or sending have no report yet.
Permissions: Requires the viewer role or higher, or the marketing.statistics.read capability. Reading the report needs access to the statistics (marketing.statistics.read), not only to the campaign: a credential that can read campaigns but not statistics gets 403.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the email campaign (the uuid field returned by list_campaigns).
uuidResponse Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/campaigns/8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35/report" \ -H "X-Auth-Token: YOUR_API_KEY"{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "type": "string", "sent_at": "2019-08-24T14:15:22Z", "finished_at": "2019-08-24T14:15:22Z", "recipients": 0, "calculated_at": "2019-08-24T14:15:22Z", "score": { "value": 0, "status": "good" }, "benchmark": { "industry": "string", "global": true }, "performance": { "delivery": { "rate": 0, "delivered": 0, "sent": 0, "audience_average": 0, "benchmark": 0, "status": "good" }, "opens": { "rate": 0, "unique": 0, "total": 0, "audience_average": 0, "benchmark": 0, "status": "good" }, "clicks": { "rate": 0, "unique": 0, "total": 0, "audience_average": 0, "benchmark": 0, "status": "good" }, "ctor": { "rate": 0, "unique_clicks": 0, "unique_opens": 0, "audience_average": 0, "benchmark": 0, "status": "good" }, "bounces": { "rate": 0, "total": 0, "soft": 0, "hard": 0, "benchmark": 0, "status": "good" }, "unsubscribes": { "rate": 0, "total": 0, "by_subscriber": 0, "automatic": 0, "benchmark": 0, "status": "good" }, "complaints": { "rate": 0, "total": 0, "healthy_limit": 0, "status": "good" }, "orders": { "state": "no_store", "rate": 0, "orders": 0, "revenue": 0 } }, "first_24_hours": [ { "starts_at": "2019-08-24T14:15:22Z", "opens": 0, "clicks": 0 } ], "top_links": [ { "url": "string", "unique_clicks": 0, "total_clicks": 0, "share": 0 } ], "opens_by_device": [ { "device": "string", "opens": 0, "share": 0 } ], "opens_by_email_client": [ { "client": "string", "opens": 0, "share": 0 } ], "opens_by_country": [ { "country_code": "string", "unique_opens": 0, "share": 0 } ]}