---
title: "Dry-run render a template with provided variables"
method: POST
path: "/api/prompt-templates/preview"
tags: ["PromptTemplates"]
---

# Dry-run render a template with provided variables

`POST /api/prompt-templates/preview`

## Request body

- object
  - `eventType` string, required
  - `body` string
  - `variables` object

## Response `200`

Rendered template preview

- object
  - `rendered` string, required
  - `unresolved` string[], required

## Other responses

- `400` — Validation error

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
