documents.snippets.create
Save a block of Markdown (kind block) or a footer (kind footer, up to 500 characters and two lines) to reuse in agreements, with a title and an idempotencyKey. Insert a saved block into a template with documents.content.edit insert_text.
POST
/api/v1/accounting/documents.snippets.createPermissions
accounting:readaccounting:write
Who can call it
admin, finance
Retries
Idempotency key required
MCP
accounting_documents_snippets_createFields
kindenumRequiredWhich kind of record or job this is.
blockfootertitlestringRequiredA short title.
1–120 characters
bodystringRequired1–20000 characters
idempotencyKeystringRequiredAny unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match.
8–200 characters
Example
curl https://app.getoatmilk.com/api/v1/accounting/documents.snippets.create \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"kind": "block",
"title": "Synthetic services agreement",
"body": "Synthetic example from the docs"
}'{
"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.
POST/api/v1/accounting/documents.snippets.create
curl https://app.getoatmilk.com/api/v1/accounting/documents.snippets.create \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"kind": "block",
"title": "Synthetic services agreement",
"body": "Synthetic example from the docs"
}'More in Documents and signing.