List templatesMenu

List templates

GET/v1/templates

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

Works with integration, agent and partner keys.

Returns templates in this workspace, each with its kind. The list form omits the block tree and HTML; retrieve a template individually to get its full content. Results are cursor-paginated: pass meta.pagination.nextCursor back as cursor until it comes back null. The cursor is opaque — do not construct or parse one.

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

querystringoptional

Part of the template's name, ignoring case.

1–200 characters

tagstringoptional

Only items carrying this tag, its name matched without case.

1–64 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 TemplateListItem 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
aliasstring | nullrequired

The name a transactional send may use in email.template.

transactionalDefaultsTransactionalDefaultsrequired

What a transactional send of the template uses unless the send gives its own; null leaves it to the send. Campaigns and journeys set their own.

4 child attributes
subjectstring | nullrequired

The subject line; may hold merge tags.

previewTextstring | nullrequired

The inbox preview text after the subject; may hold merge tags.

fromstring | nullrequired

The sender: one address, optionally with a display name.

replyTostring | nullrequired

The address replies go to.

email

kindstringrequired

design: built from blocks; html: the whole email written as HTML.

one of design, html

blockCountintegerrequired

Top-level blocks in the design; blocks inside columns, sections and repeats are not counted. 0 for an HTML template.

min 0

publishedVersioninteger | nullrequired

The version API sends use; null until published. The template itself is the draft.

min > 0

hasUnpublishedChangesbooleanrequired

The draft differs from the published version, the brand or a shared block it places has changed since it was published, or it was never published.

thumbnailUrlstring | nullrequired

A small picture of the design (WebP, 640 × 853, shown at half size), redrawn a few seconds after each save, at a new address each time; null until the first is drawn.

uri

tagsstring[]required

Tag names, sorted without case.

createdAtstringrequired

date-time

updatedAtstringrequired

date-time