Sign render URLs

Return signed image URLs (`/r/:id?…&sig=…`) for one variable set or up to 500 rows. A signed URL needs no key or session: the signature covers the template id and every parameter, so it can sit in an email, a CRM field, an OG tag or an `<img>` on any site. Each distinct URL renders once (charged like one still) and is served from cache after; republishing the template refreshes them. Still formats only (png, webp), scale ≤ 2, published version only. Requires the template.render scope.

POST/api/v1/templates/:id/signed-urls

Query / Path parameters

NameInRequiredDescription
idpathYesTemplate ID

Request body

PropertyTypeRequiredDescription
variablesobjectNoVariables for ONE URL
rowsarrayNoMany URLs — one per row; each row may override `options`
optionsunknownNo—
pagesallNoOne URL per PAGE for every row: a still template's scenes (a scene repeated over data is one page per item, resolved with the row's variables), each signed with its `scene` index — so a carousel's keyless links exist before anything renders. Exclusive with `options.scene` and `nodeId`; at most 50 pages a row and 500 URLs a call (PAGE_LIMIT_EXCEEDED / VALIDATION). Each returned row then carries `scene` and `page: { index, name }`.

Responses

200

JSON { templateId, published, urls: [{ url, path, variables, scene?, page? }] } — `published: false` means the URLs will 404 until the template is published; `scene` and `page: { index, name }` appear with `pages: "all"`

401

Missing or invalid API key

403

The key lacks the template.render scope

404

Template not found in the key's space, or `options.brand` names no brand of it (BRAND_NOT_FOUND)

422

A variable name collides with a render option, an option is out of range, `pages: "all"` is combined with `options.scene` / `nodeId` or signs more than 500 URLs (VALIDATION), or a row resolves to more than 50 pages (PAGE_LIMIT_EXCEEDED)

Request
curl -X POST "https://bannx.com/api/v1/templates/:id/signed-urls" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"variables":null,"rows":null,"options":null,"pages":null}'
Response
// JSON { templateId, published, urls: [{ url, path, variables, scene?, page? }] } — `published: false` means the URLs will 404 until the template is published; `scene` and `page: { index, name }` appear with `pages: "all"`
{
  "success": true,
  "data": { ... }
}