List public templates

List published community/gallery templates from their published snapshots. No authentication required.

GET/api/v1/templates/public

Query / Path parameters

NameInRequiredDescription
searchqueryNoSemantic + keyword search over name, description and each template's design digest (format, palette, fonts, layout), ranked by relevance ("job application" finds the hiring posts, "dark editorial portrait" finds the look); max 80 chars. Falls back to a substring match when search is unavailable.
categoryqueryNoCategory filter, or "featured" for the curated list
formatqueryNoOutput format filter: creative (designs — also matches templates with no format set), video, doc, html-ad, mockups, backgrounds
pagequeryNoPage number (default 1)
usesBrandVariablesqueryNoFilter published designs: true uses brand-kit variables, false uses none
isPremiumqueryNoFilter by access: true lists premium templates only, false lists free ones (anything not flagged premium)
featuresqueryNoComma-separated feature tags the published snapshot must ALL carry, from its `features.tags` (e.g. data.loops, data.computation, data.class.fillable, motion.animated, layout.pagination); 1-8 tags. See the Template features section of the templates guide.
perPagequeryNoItems per page (max 100)
viewqueryNoRow shape. `card` returns only what a gallery card shows: `_id`, `slug`, `name`, `type`, `format`, `category`, `isPremium` (when true), `createdBy`, `thumbnail` (URLs only, variants up to 960 px wide; `src` is omitted when variants exist, use the largest), `thumbnailCurrent`, `contentHash`, `usesBrandVariables`, `width`, `height`, `sampleCount` (stored sample sets), `pages` (page count of a still template whose `templateSettings.pageView` is `carousel`, when above 1: its scenes after scene `repeat` / `if` resolve against the default values, so one scene repeated over a 4-item list counts 4) `communityAuthor` (`{ kind: user|space, name }`, on templates listed through a reviewed community submission) and, for videos, `video` / `meta` poster URLs, plus `_lean: true`. No document, variables or design digest; fetch one template with GET /api/v1/templates/public/{id} for those. Omit for the full published row.

Responses

200

JSON { list, count, pagesCount }. Each row is the template as published, or a card row with view=card

Request
curl -X GET "https://bannx.com/api/v1/templates/public" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Response
// JSON { list, count, pagesCount }. Each row is the template as published, or a card row with view=card
{
  "success": true,
  "data": { ... }
}