Documents and signing

documents.history.list

Read an agreement template's history, newest first: sessions of saves (who, when, through the writer, Ask AI, an AI app, the API, an accepted suggestion or a restore, and what changed: text, name, fields, signers, letterhead, footer or logo), publishing and archiving, and suggestions made, accepted or rejected. Pass before (the nextBefore it returned) for older history.

GETPOST/api/v1/accounting/documents.history.list

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

accounting_documents_history_list

Fields

  • documentType"agreement_template"Required
  • documentIdstring (ID)Required

    The ID of the related record.

  • beforestring (date-time)
  • limitinteger

    How many results to return at most.

    1 to 200 · Default 100

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/documents.history.list \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'documentType=agreement_template' \
  --data-urlencode 'documentId=1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d'
Response
{
  "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.list
curl -G https://app.getoatmilk.com/api/v1/accounting/documents.history.list \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'documentType=agreement_template' \
  --data-urlencode 'documentId=1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d'

More in Documents and signing.