emails.submitBatch
Submit original RFC822 emails using idempotencyKey and emails [{rawEmail,filename,metadata}]. Up to 20 emails and 3 MB total per request. Claimed sender metadata never authorizes a different user. Preserves original email bytes and returns processing jobs.
POST
/api/v1/accounting/emails.submitBatchPermissions
accounting:readaccounting:write
Who can call it
admin, finance, contributor
Retries
Idempotency key required
MCP
accounting_submit_emailsFields
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–160 characters
emailsarray of objectsRequired1–20 items
Example
curl https://app.getoatmilk.com/api/v1/accounting/emails.submitBatch \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"emails": [
{
"rawEmail": "finance@example.com"
}
]
}'{
"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/emails.submitBatch
curl https://app.getoatmilk.com/api/v1/accounting/emails.submitBatch \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"emails": [
{
"rawEmail": "finance@example.com"
}
]
}'More in Inbox and uploads.