Retrieve a campaign's email results by domain, device or countryMenu

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

idstringrequired

The campaign's id.

uuid

Query parameters

groupBystringrequired

domain: 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-Workspacestringoptional

Partner 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.

campaignIdstringrequired

uuid

groupBystringrequired

domain: 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

rowsobject[]required

The largest rows by messages sent, largest first.

at most 50 items

10 child attributes
sentintegerrequired

min 0

deliveredintegerrequired

min 0

openedintegerrequired

Including machine opens, as in the campaign's metrics.

min 0

openedByMachineintegerrequired

min 0

clickedintegerrequired

min 0

clickedByMachineintegerrequired

min 0

bouncedintegerrequired

min 0

complainedintegerrequired

min 0

unsubscribedintegerrequired

min 0

keystring | nullrequired

The domain, desktop / mobile / tablet, or a country code; null when unknown.

otherobject | nullrequired

Every row past the largest 50, summed; null when there are 50 or fewer.

9 child attributes
sentintegerrequired

min 0

deliveredintegerrequired

min 0

openedintegerrequired

Including machine opens, as in the campaign's metrics.

min 0

openedByMachineintegerrequired

min 0

clickedintegerrequired

min 0

clickedByMachineintegerrequired

min 0

bouncedintegerrequired

min 0

complainedintegerrequired

min 0

unsubscribedintegerrequired

min 0