---
title: "Filled PDF of the current draft (marked TEST; example values when data is empty) — required before publishing"
method: POST
path: "/api/v1/custom-forms/{id}/preview"
tags: ["Custom forms"]
---

# Filled PDF of the current draft (marked TEST; example values when data is empty) — required before publishing

`POST /api/v1/custom-forms/{id}/preview`

## Request

- Base URL: `https://philforms.com`
- URL: `https://philforms.com/api/v1/custom-forms/{id}/preview`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `data` object: Values keyed by parameter name

## Response `200`

Filled, sealed PDF

## Other responses

- `400`: Fix the errors first
- `404`: No such custom form

---

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