---
title: "Generate Org Document"
method: POST
path: "/api/orgs/organizations/{org_id}/documents"
tags: ["org_documents"]
---

# Generate Org Document

`POST /api/orgs/organizations/{org_id}/documents`

## 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/orgs/organizations/{org_id}/documents`
- Auth: none declared

Generate from the live template and save it on the organization as
a new version (earlier versions are kept).

## Path parameters

- `org_id` string, uuid, required

## Request body

- GenerateIn
  - `kind` string, required
  - `contact_id` string, uuid, nullable
  - `answers` object
  - `picked` object
  - `deal` DealIn: The pricing panel (spec §1 "Deal inputs"). INTERNAL: stored on the record, never printed. `pricing_mode` (Frederick, 2026-09-30): "per_adp" (the spec's original rate x ADP x 12 calculation) or "flat" (a flat annual amount typed directly -- "I can do 35k a year if I want flat rate"). `rate_per_adp`/ `override_annual` are read only in "per_adp" mode; `flat_annual` only in "flat" mode.
    - `rate_per_adp` string
    - `override_annual` string
    - `payment` string, nullable
    - `pricing_mode` string
    - `flat_annual` string
  - `rep_principal_id` string, uuid, nullable
  - `regenerated_from_id` string, uuid, nullable
  - `deal_id` string, uuid, 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)
