signing.templates.preview
Render a PDF preview of a template (templateId) or unsaved template text (body, fields, signerRoles) with merge values and recipients on the organization letterhead. Returns pdfBase64, the page count, and the labels of required fields that are still empty. Nothing is stored.
/api/v1/accounting/signing.templates.previewPermissions
Who can call it
Retries
MCP
accounting_signing_templates_previewFields
templateIdstring (ID)The ID of the related record.
titlestringA short title.
1–200 characters
bodystring1–200000 characters
fieldsarray of objectsat most 100 items
signerRolesarray of objectsat most 10 items
letterheadbooleanlogoAssetIdstring (ID) or nullvaluesmapDefault {}
recipientsarray of objectsat most 20 items
subjectTypeenumThe kind of record this is about, such as entry, invoice or mail.
contractorpartyinvoicesubjectIdstringThe ID of the record this is about.
1–200 characters
jobRoleIdstring (ID)The ID of the related record.
jobRoleVersioninteger1 to 100000
engagementobjectNo other fields
Example
curl -G https://app.getoatmilk.com/api/v1/accounting/signing.templates.preview \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'templateId=7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10'{
"data": { … }
}Try it
Try it
Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.
curl -G https://app.getoatmilk.com/api/v1/accounting/signing.templates.preview \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'templateId=7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10'More in Documents and signing.