Inbox and uploads

mail.download

Prepare an explicit short-lived download of authorized company mail evidence.

GETPOST/api/v1/accounting/mail.download

Permissions

mail:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

Not offered over MCP: Accountants' financial email grant isn't offered over MCP yet: phase 1 is read and comment only.

Fields

  • idstring (ID)Required

    The record's ID.

  • evidenceIdstring (ID)Required

    The ID of the related record.

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/mail.download \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
  --data-urlencode 'evidenceId=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/mail.download
curl -G https://app.getoatmilk.com/api/v1/accounting/mail.download \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
  --data-urlencode 'evidenceId=1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d'

More in Inbox and uploads.