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.
/api/v1/templates/:id/signed-urlsQuery / Path parameters
| Name | In | Required | Description |
|---|---|---|---|
| id | path | Yes | Template ID |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| variables | object | No | Variables for ONE URL |
| rows | array | No | Many URLs — one per row; each row may override `options` |
| options | unknown | No | — |
| pages | all | No | One 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
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"`
Missing or invalid API key
The key lacks the template.render scope
Template not found in the key's space, or `options.brand` names no brand of it (BRAND_NOT_FOUND)
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)
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}'// 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": { ... }
}