Report every goal's results for a campaign or journeyMenu

Report every goal's results for a campaign or journey

GET/v1/conversion-goals/metrics

Requires an API key with the conversion-goals:read scope. About keys and scopes

Works with integration, agent and partner keys.

Each of the campaign's or journey's goals, oldest first, with the all-time totals GET /conversion-goals/{id}/metrics reports for one (without its day-by-day history): one call for a table of its goals. A goal whose valueProperty is an attribute masked from you keeps its counts and has revenueWithheld true, where the single read would refuse. An empty list when it has no goals, or when no campaign or journey with that id exists in the workspace.

Query parameters

campaignIdstringoptional

The campaign's goals.

uuid

journeyIdstringoptional

The journey's goals.

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

conversionGoalIdstringrequired

uuid

conversionsintegerrequired

All time: every event the goal counted, from countedFrom; one contact can convert more than once.

min 0

convertedContactsintegerrequired

All time: the contacts behind conversions.

min 0

reachedContactsintegerrequired

All time: contacts sent to that a conversion could be credited to, from one attribution window before countedFrom. A send that bounced or was reported as spam is left out, as attribution never credits it, so this can be below the sends that reached the provider.

min 0

conversionRatenumber | nullrequired

All time: convertedContacts over reachedContacts; null before there is such a send.

min 0

revenueobject | nullrequired

All time: the value property's sum, in the goal currency; null when the goal has no valueProperty.

2 child attributes
currencystring | nullrequired

The currency, an ISO 4217 code; null when none was named.

valuenumberrequired

The amount in that currency.

conversionsWithoutValueinteger | nullrequired

All time: conversions counted without a value (the property missing, not a non-negative number, too large, or the event naming another currency); null when the goal has no valueProperty.

min 0

revenueWithheldbooleanrequired

The goal reads its value from an attribute masked from you: revenue and conversionsWithoutValue are null.