List a campaign's links and their clicksMenu

List a campaign's links and their clicks

GET/v1/campaigns/{id}/links

Requires an API key with the campaigns:read scope. About keys and scopes

Works with integration, agent and partner keys.

Lists every link in the campaign email, never-clicked ones included, with its clicks. Ordered by uniqueClicks, most first; links nobody clicked come last, in the order they appear in the email. A/B versions are combined. A link is reported without its query string or fragment, so a personalised link is one row. uniqueClicks and totalClicks count people; a mail security scanner checking links on delivery, or a link preview, counts only in machineClicks. One person can click several links, so the unique clicks here can add up to more than the campaign's email.clicked.

Path parameters

idstringrequired

The campaign's id.

uuid

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 list of CampaignLink objects in data. Otherwise returns an error; Errors lists every code and which to retry.

urlstringrequired

The destination without its query string or fragment.

uniqueClicksintegerrequired

People who clicked the link at least once.

min 0

totalClicksintegerrequired

Every click on the link by a person, repeats included.

min 0

machineClicksintegerrequired

Clicks by security scanners and link previews, counted in neither of the others.

min 0

positionsobject[]required

A person's clicks by where the link sits in the email, first position first, telling apart one URL linked twice. Mail sent before positions were recorded counts in the totals only. Content shown to some contacts and not others can move a link's position for them.

3 child attributes
positionintegerrequired

The link's place among the email's tracked links, from 0 in the order they appear in the sent email.

min 0

uniqueClicksintegerrequired

People who clicked it there.

min 0

totalClicksintegerrequired

Clicks by a person there, repeats included.

min 0