Browse the docs Open Close
Preview
See it before you spend a credit.
Preview renders a template (optionally with variants) into a WATERMARKED, self-contained HTML document without creating a snap and without charging a credit. The response is the rendered HTML — nothing is rasterized and nothing is persisted. Use it to iterate, then call POST /v1/snaps to produce the final, un-watermarked, billed snap image with the same variants. Available to trial users (no active subscription required). Rate-limited separately from the rest of the API.
On this page
/v1/templates/{templateUuid}/preview
Preview a template
Renders a free, watermarked preview of a template using its default layer content, or with `variants` applied. Returns a self-contained HTML document (text/html).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
templateUuid |
path | string | Yes | UUID of the template to preview. |
variants |
query | array | No | Per-layer overrides, e.g. variants[0][layer]=headline&variants[0][text]=Hello. Each item targets a layer key with one of text, image_url (public URL), background_color, qr_content, or hidden. |
The preview is watermarked HTML, not a usable final asset.
No credit is charged and no snap is stored.
Example request
curl
curl 'https://snapsbrew.com/api/v1/templates/<uuid>/preview' \
-H 'Authorization: Bearer <your-token>' \
--output preview.html
Example responses
"<!DOCTYPE html>\u2026watermarked preview\u2026</html>"
{
"message": "Not found."
}
{
"message": "The variants.0.image_url must be a public http or https URL."
}
{
"message": "Too Many Attempts."
}
/v1/snaps/preview
Preview a snap
Renders a free, watermarked preview of the snap you intend to create — a template (`template_id`) plus `variants`. Returns a self-contained HTML document (text/html). Pass the same template_id and variants to POST /v1/snaps to create the final billed snap.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
template_id |
query | string | Yes | UUID of the template to render. |
variants |
query | array | No | Per-layer overrides, e.g. variants[0][layer]=headline&variants[0][text]=Hello. Each item targets a layer key with one of text, image_url (public URL), background_color, qr_content, or hidden. |
The preview is watermarked HTML, not a usable final asset.
No credit is charged and no snap is stored.
Example request
curl
curl 'https://snapsbrew.com/api/v1/snaps/preview?template_id=<uuid>&variants[0][layer]=headline&variants[0][text]=Hello' \
-H 'Authorization: Bearer <your-token>' \
--output preview.html
Example responses
"<!DOCTYPE html>\u2026watermarked preview\u2026</html>"
{
"message": "Not found."
}
{
"message": "The template id field is required."
}
{
"message": "Too Many Attempts."
}