---
title: "Preview PDF template"
method: POST
path: "/templatepdf/{pdfId}/preview/"
tags: ["templatepdf"]
---

# Preview PDF template

`POST /templatepdf/{pdfId}/preview/`

## Request

- Base URL: `https://eu-api.legalesign.com/api/v1`
- URL: `https://eu-api.legalesign.com/api/v1/templatepdf/{pdfId}/preview/`
- Auth: API key in header `Authorization`

Returns a PDF with fields populated for preview. Sender fields (element_type=admin) are filled with the values you provide. If no values are provided, all fields use lorem ipsum. Use GET /templatepdf/{pdfId}/fields/ and filter by element_type=admin to find valid field labels and UUIDs.

## Path parameters

- `pdfId` string, required

## Request body

- object: Key-value pairs to populate sender fields. Use the field label or UUID as the key. If omitted, all fields are filled with lorem ipsum values.

## Response `200`

A PDF file with fields populated

## Changes

- **2026-10-27** `e0fcb6197e2c`: 1 breaking
  - added the new path request parameter `pdfId`
- **2026-10-27** `07d4893cf1f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/legalesign/apis/legalesign-api/changes/templatepdf/:pdfId/preview/post.md)

---

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