List public templates
List published community/gallery templates from their published snapshots. No authentication required.
/api/v1/templates/publicQuery / Path parameters
| Name | In | Required | Description |
|---|---|---|---|
| search | query | No | Semantic + 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. |
| category | query | No | Category filter, or "featured" for the curated list |
| format | query | No | Output format filter: creative (designs — also matches templates with no format set), video, doc, html-ad, mockups, backgrounds |
| page | query | No | Page number (default 1) |
| usesBrandVariables | query | No | Filter published designs: true uses brand-kit variables, false uses none |
| isPremium | query | No | Filter by access: true lists premium templates only, false lists free ones (anything not flagged premium) |
| features | query | No | Comma-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. |
| perPage | query | No | Items per page (max 100) |
| view | query | No | Row 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": { ... }
}