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
campaignIdstringoptionalThe campaign's goals.
uuid
journeyIdstringoptionalThe journey's goals.
uuid
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 list of ConversionGoalTotals objects in data. Otherwise returns an error; Errors lists every code and which to retry.
conversionGoalIdstringrequireduuid
conversionsintegerrequiredAll time: every event the goal counted, from
countedFrom; one contact can convert more than once.min 0
convertedContactsintegerrequiredAll time: the contacts behind
conversions.min 0
reachedContactsintegerrequiredAll 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 | nullrequiredAll time:
convertedContactsoverreachedContacts;nullbefore there is such a send.min 0
revenueobject | nullrequiredAll time: the value property's sum, in the goal currency;
nullwhen the goal has novalueProperty.2 child attributes
currencystring | nullrequiredThe currency, an ISO 4217 code; null when none was named.
valuenumberrequiredThe amount in that currency.
conversionsWithoutValueinteger | nullrequiredAll time: conversions counted without a value (the property missing, not a non-negative number, too large, or the event naming another currency);
nullwhen the goal has novalueProperty.min 0
revenueWithheldbooleanrequiredThe goal reads its value from an attribute masked from you:
revenueandconversionsWithoutValuearenull.