build_document
Generate a document's PDF synchronously (up to 2 minutes). Check get_document before retrying a timed-out build to avoid duplicate versions.
Instructions
Generate the document's PDF. Runs synchronously and can take up to two minutes — do not retry a timed-out build without checking get_document first (the build may have completed; retrying creates another build version). Fails with 422 if the document is locked (approval flow complete).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id (UUID) | |
| naration | No | Optional name for the build version |