---
title: "See what a template design looks like before saving it"
method: POST
path: "/v1/templates/preview"
tags: ["Templates"]
---

# See what a template design looks like before saving it

`POST /v1/templates/preview`

## Request

- Base URL: `https://infoslides.app`
- URL: `https://infoslides.app/v1/templates/preview`
- Auth: none declared

Renders a PNG of the given `layoutHtml`/`layoutCss`/`sampleData` and saves nothing — try a design before creating it with `POST /v1/templates`. Same validation as creating a template. Optional `aspectRatio` (`16:9`, `9:16`, `1:1`) sizes the render; defaults to `16:9`. Raw `image/png` bytes, not an envelope. Rate limited per workspace.

## Request body

- V1PreviewTemplateRequest
  - `layoutHtml` string, nullable
  - `layoutCss` string, nullable
  - `sampleData` unknown
  - `aspectRatio` string, nullable

## Response `200`

OK

---

[API](https://skmtc.dev/infoslides/apis/infoslides-agent-api.md) · [All operations](https://skmtc.dev/infoslides/apis/infoslides-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/infoslides/apis/infoslides-agent-api/revisions/d15bb7f8ee9d?raw)
