Retrieve a list's usageMenu

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

idstringrequired

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

campaignsobject[]required
3 child attributes
idstringrequired

uuid

namestringrequired
statusstringrequired

one of draft, scheduled, sending, testing, sent, cancelled

formsobject[]required
2 child attributes
idstringrequired

uuid

namestringrequired
goalsobject[]required
2 child attributes
idstringrequired

uuid

namestringrequired
journeysobject[]required
3 child attributes
idstringrequired

uuid

namestringrequired
statusstringrequired

one of draft, active, paused, ended

segmentsobject[]required
2 child attributes
idstringrequired

uuid

namestringrequired
templatesobject[]required
2 child attributes
idstringrequired

uuid

namestringrequired
sharedBlocksobject[]required
2 child attributes
idstringrequired

uuid

namestringrequired
hasMorebooleanrequired

More use it than are listed: each list stops at 50.