Retrieve a campaign's email results by domain, device or country
GET/v1/campaigns/{id}/breakdown
Requires an API key with the campaigns:read scope. About keys and scopes
Works with integration, agent and partner keys.
Splits a campaign's email results into rows by the recipient's email domain (gmail.com), the device they first opened or clicked on (desktop, mobile, tablet), or the contact's country (GB), counted the same way as the campaign's metrics. Use it to find where a problem sits: bounces concentrated on one domain point at that mailbox provider, not at the whole list.
Rows are ordered by messages sent, largest first. The 50 largest are listed, and everything past them is summed in other (null when there are none). A row's key is null when the value is unknown: a device is known only once a person opens with images on or clicks (machine opens, such as Apple Mail Privacy Protection's and Gmail's prefetch, and Gmail's image proxy name no device, and other image proxies may read as desktop); a country only when the contact has one; a domain only while the message still names someone (not after the contact is deleted).
Push results are not included: a push campaign's per-device outcomes are in its metrics, under push.devices.
Path parameters
idstringrequiredThe campaign's id.
uuid
Query parameters
groupBystringrequireddomain: the recipient's email domain.device: the kind of device a person first opened or clicked on.country: the contact's country (ISO 3166-1 alpha-2).one of
domain,device,country
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$
Returns
Returns 200 OK with a CampaignBreakdown in data. Otherwise returns an error; Errors lists every code and which to retry.
campaignIdstringrequireduuid
groupBystringrequireddomain: the recipient's email domain.device: the kind of device a person first opened or clicked on.country: the contact's country (ISO 3166-1 alpha-2).one of
domain,device,countryrowsobject[]requiredThe largest rows by messages sent, largest first.
at most 50 items
10 child attributes
sentintegerrequiredmin 0
deliveredintegerrequiredmin 0
openedintegerrequiredIncluding machine opens, as in the campaign's metrics.
min 0
openedByMachineintegerrequiredmin 0
clickedintegerrequiredmin 0
clickedByMachineintegerrequiredmin 0
bouncedintegerrequiredmin 0
complainedintegerrequiredmin 0
unsubscribedintegerrequiredmin 0
keystring | nullrequiredThe domain,
desktop/mobile/tablet, or a country code;nullwhen unknown.
otherobject | nullrequiredEvery row past the largest 50, summed;
nullwhen there are 50 or fewer.9 child attributes
sentintegerrequiredmin 0
deliveredintegerrequiredmin 0
openedintegerrequiredIncluding machine opens, as in the campaign's metrics.
min 0
openedByMachineintegerrequiredmin 0
clickedintegerrequiredmin 0
clickedByMachineintegerrequiredmin 0
bouncedintegerrequiredmin 0
complainedintegerrequiredmin 0
unsubscribedintegerrequiredmin 0