Retrieve a shared block's usageMenu

Retrieve a shared block's usage

GET/v1/shared-blocks/{id}/usage

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

Works with integration, agent and partner keys.

Returns where a shared block is placed: templates, campaigns not yet sent and journeys not ended, each list at most 50 long, with hasMore when one is longer. A template's hasUnpublishedChanges says whether its sends still show an older content: publish it to bring them this one. Sent campaigns kept it as it was.

Path parameters

idstringrequired

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

templatesobject[]required

Templates that place it.

3 child attributes
idstringrequired

uuid

namestringrequired
hasUnpublishedChangesbooleanrequired

Its published version is behind its draft, the brand or a shared block it places: publish it for sends to show this block as it is now.

campaignsobject[]required

Campaigns not yet sent that place it.

2 child attributes
idstringrequired

uuid

namestringrequired
journeysobject[]required

Journeys not ended that place it.

2 child attributes
idstringrequired

uuid

namestringrequired
brandKitbooleanrequired

Whether it is the brand kit's default header or footer.

hasMorebooleanrequired

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