---
title: "Preview an inline template"
method: POST
path: "/v1/templates/preview"
tags: ["Templates"]
---

# Preview an inline template

`POST /v1/templates/preview`

Render an unsaved template with sample data.

## Request body

- object
  - `subject` string, required
  - `html` string, required
  - `text_body` string
  - `data` object

## Response `200`

Rendered preview

- TemplatePreview
  - `subject` string
  - `html` string
  - `text` string

---

[API](https://skmtc.net/shareout/apis/shareout-rest-api.md) · [All operations](https://skmtc.net/shareout/apis/shareout-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shareout/shareout-rest-api/revisions/804359ead65a/schema)
