Generate All Deal Documents
POST /deals/{deal_id}/documents/generate-all
Generate all six documents for this deal. SPENDS CREDITS.
ASYNCHRONOUS: the work is queued and this returns straight away. Poll
/documents/generation-status.
The app REFUSES this when the deal’s company has no completed synthesis documents of its own - the deal documents are written from them, so without them there is nothing to write from. Generate the company documents first.
Authorizations
Parameters
Path Parameters
Deal id (UUID).
Deal id (UUID).
Header Parameters
Responses
200
Successful Response
object
An open envelope for one document, folder or questionnaire.
Open on purpose: a Library document carries extraction metadata, a
questionnaire carries per-provider processing detail, and a generated deal
document carries structured_data and highlights whose shape is the
generator’s rather than this contract’s. Pinning those would silently drop
whatever the app learned to return that this file had not caught up on.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error