documents.history.get
Rebuild one saved version of an agreement template from its history (id from documents.history.list, and firstId to compare with the version before that session): its name, text, footer, letterhead, logo and signers, and the same for the version before.
GETPOST
/api/v1/accounting/documents.history.getPermissions
accounting:read
Who can call it
admin, finance
Retries
Safe to retry: it only reads
MCP
accounting_documents_history_getFields
documentType"agreement_template"RequireddocumentIdstring (ID)RequiredThe ID of the related record.
idstring (ID)RequiredThe record's ID.
firstIdstring (ID)The ID of the related record.
Example
curl -G https://app.getoatmilk.com/api/v1/accounting/documents.history.get \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'documentType=agreement_template' \
--data-urlencode 'documentId=1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d' \
--data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d'{
"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.
GET/api/v1/accounting/documents.history.get
curl -G https://app.getoatmilk.com/api/v1/accounting/documents.history.get \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'documentType=agreement_template' \
--data-urlencode 'documentId=1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d' \
--data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d'More in Documents and signing.