/v1/definitions/{key}/rows/{rowId}/contract/documentsAdd a document to a deal's contract
Renders one document against a deal and stores it, pinned to the template version it was built from. kind names the document (or templateId a specific template), and terms supplies values the template asks for beyond the record's own cells — placeholders are filled from the row's cells keyed by slugged column label, plus the workspace name and the caller's email. A placeholder nothing filled is a 422 that NAMES the missing ones rather than issuing a paper with a hole in it; an unknown kind is a 400 and a stranger's template a 404.
Access class: def:read.
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Request body
application/jsonrequiredkeyed by id (a cells object by column name or id); every value is TEXT — a number, date, yes/no or list is written as a string
Responses
the action's answer
{
"data": {
"body": "string",
"bodyFormat": "string",
"id": "",
"kind": "string",
"renderedAt": "2026-01-01T00:00:00Z",
"renderedBy": 1,
"rowId": "",
"substitutions": {},
"templateId": "",
"templateVersion": 1,
"title": "string"
}
}a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}