List shared blocksMenu

List shared blocks

GET/v1/shared-blocks

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

Works with integration, agent and partner keys. Also available to embed sessions.

Lists the workspace's shared blocks, without their content: retrieve one for its blocks. A shared block (a footer, a product card) is kept once and placed in emails as a shared block naming it. Template drafts and draft campaigns and journeys show its current content; publishing a template, scheduling or sending a campaign and activating a journey keep it as it was then. A placement with override shows its own blocks instead: the editor marks it edited and can push it back (update the shared block, then drop the override) or revert it (drop the override).

Query parameters

limitintegeroptional

How many items a page holds: 1 to 100, 20 by default.

min > 0 · max 100 · default 20

cursorstringoptional

Where the page starts: the previous page's meta.pagination.nextCursor. Omit it for the first page, and send the same filters with it.

1–2,048 characters

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 SharedBlockListItem objects in data, and the next page's cursor in meta (see pagination). Otherwise returns an error; Errors lists every code and which to retry.

idstringrequired

uuid

namestringrequired
createdAtstringrequired

date-time

updatedAtstringrequired

date-time

usageCountintegerrequired

How many templates, open campaigns and live journeys place it.

min 0