---
title: "Preview Document Template"
method: POST
path: "/api/sales/document-templates/preview"
tags: ["org_documents"]
---

# Preview Document Template

`POST /api/sales/document-templates/preview`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/sales/document-templates/preview`
- Auth: none declared

The unsaved draft (Markdown text, or an uploaded / the live .docx),
filled against a real organization for the choices given. Stores
nothing and makes no PDF.

Telemetry (CEO telemetry slice 16 part 3b, 2026-11-14, Lead decision under the
owner's 2026-11-11 delegation): the route is a POST, so the every-action gate counts
it as a writer. It records `org_documents.preview_document_template` after a
successful preview, with no row id (nothing is written) and the principal who asked.
The earlier "not a business act" reading is corrected in
`docs/00_business_rules/CEO_TELEMETRY.md`. Rule: every action is recorded, even a preview.

## Request body `multipart/form-data`

- BodyPreviewDocumentTemplateApiSalesDocumentTemplatesPreviewPost
  - `kind` string, required
  - `title` string, required
  - `body` string
  - `questions` string
  - `choices` string
  - `org_id` string, uuid, required
  - `picked` string
  - `keep_live_source` boolean
  - `file` string, binary, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
