Menu

List templates

GET/v1/templates

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

Returns templates in this organization. The list form omits the block tree; 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

min > 0 · max 100 · default 20

cursorstringoptional

1–2048 characters

qstringoptional

1–200 characters

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
blockCountintegerrequired

Blocks in the design, at every level.

min 0 · max 9007199254740991

publishedVersioninteger | nullrequired

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

min > 0 · max 9007199254740991

hasUnpublishedChangesbooleanrequired

The draft differs from the published version, or was never published.

thumbnailUrlstring | nullrequired

A small picture of the design (WebP, 320 × 427), redrawn a few seconds after each save; null until the first is drawn.

uri

thumbnailUpdatedAtstring | nullrequired

When the thumbnail was last drawn.

date-time

updatedAtstringrequired

date-time