Retrieve a list's usage
GET/v1/lists/{id}/usage
Requires an API key with the lists:read scope. About keys and scopes
Works with integration, agent and partner keys.
Returns what names the list: campaigns whose audience, rules or exclusions name it, or whose content has a block shown only to, or hidden from, its members, forms that add people to it, goals whose rules name it, journeys whose rules or steps name it, segments whose rules name it, and templates (the draft or the published version) and shared blocks with such a block, up to 50 of each (hasMore when a kind holds more). Deleting the list is refused (409 IN_USE) while any of them is a campaign not yet sent or cancelled (draft, scheduled, testing for an A/B test, or sending), a published form not archived, a goal not retired, an active or paused journey, a segment, a template or a shared block. Draft or archived forms, sent or cancelled campaigns, retired goals and draft or ended journeys do not block it.
Path parameters
idstringrequiredThe list's id.
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 ListUsage in data. Otherwise returns an error; Errors lists every code and which to retry.
campaignsobject[]required3 child attributes
idstringrequireduuid
namestringrequiredstatusstringrequiredone of
draft,scheduled,sending,testing,sent,cancelled
formsobject[]required2 child attributes
idstringrequireduuid
namestringrequired
goalsobject[]required2 child attributes
idstringrequireduuid
namestringrequired
journeysobject[]required3 child attributes
idstringrequireduuid
namestringrequiredstatusstringrequiredone of
draft,active,paused,ended
segmentsobject[]required2 child attributes
idstringrequireduuid
namestringrequired
templatesobject[]required2 child attributes
idstringrequireduuid
namestringrequired
sharedBlocksobject[]required2 child attributes
idstringrequireduuid
namestringrequired
hasMorebooleanrequiredMore use it than are listed: each list stops at 50.