---
title: "Generate a preview PDF for partially completed data requests"
method: POST
path: "/submissions/{submission_id}/generate_preview"
tags: ["PDF Submissions"]
---

# Generate a preview PDF for partially completed data requests

`POST /submissions/{submission_id}/generate_preview`

Generates a preview PDF for a submission with partially completed data requests. Useful
for showing users what the final document will look like before all signatures or data
have been collected. The preview includes any data collected so far.

## Path parameters

- `submission_id` string, required

## Response `200`

preview was successfully requested

- SuccessErrorResponse
  - `status` 'success' | 'error', required
  - `error` string

## Other responses

- `404` — submission not found
- `422` — error requesting preview

---

[API](https://skmtc.dev/docspring/apis/docspring-api.md) · [All operations](https://skmtc.dev/docspring/apis/docspring-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docspring/docspring-api/revisions/5726657b9432/schema)
