# Preview a template

```http
POST https://api.signapi.lumin.example/v1/templates/{templateId}/preview
```

Renders a template to PDF with sample data and returns a one-hour download link.

This endpoint is a [Sign API extension](https://docs.signapi.dev/extensions). SignatureAPI has no equivalent.

## Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `templateId` | string | Yes | The unique identifier of a template. A stored template (tpl_…) in this account and mode. Pattern `^tpl_[0-9A-Za-z]{22}$`. Sign API extension. |

## Request body

Content type `application/json`.

Body: [`Template.PreviewInput`](https://docs.signapi.dev/schemas/Template.PreviewInput).


## Responses

### 200

Body: [`Template.Preview`](https://docs.signapi.dev/schemas/Template.Preview).

### 422

The request failed validation. The [problem body](https://docs.signapi.dev/errors) lists each problem in `errors`.

### 4xx

A client error, as an `application/problem+json` body. Its `type` links to the [error page](https://docs.signapi.dev/errors) for the code.

### 5xx

A server error, as an `application/problem+json` body. Retry with backoff.
