mail.list
Search visible company mail with search: literal text in the subject, sender, body, attachment filenames and extracted document text. searchScope headers limits it to subject and sender. archived false (default) searches inbox mail, true archived mail, all both. Results include items and total; use limit and offset to continue, then mail.get for full details. Restricted messages require explicit security permission. Connected personal inbox receipt searches use evidence.inboxSearch.start/get instead.
/api/v1/accounting/mail.listPermissions
Who can call it
Retries
MCP
Fields
mailboxstringMatches ^[a-z][a-z0-9_-]{1,39}$
purposeenumunclassifiedfinancialbilling_noticeaccount_accessgeneralspamuncertainstatusenumOnly include records with this status.
receivedprocessingreadyfailedquarantinedpromotedreadbooleanarchivedboolean or "all"false searches the inbox, true searches archived mail, all searches both.
allsearchstringCase-insensitive literal text, including the email body and read attachments by default.
at most 200 characters
searchScopeenumall searches subject, sender, body, attachment filenames and extracted document text. headers searches only subject and sender.
allheadersDefault "all"
limitintegerHow many results to return at most.
1 to 100 · Default 30
offsetintegerHow many results to skip, for the next page of a list.
0 to 9007199254740991 · Default 0
Example
curl https://app.getoatmilk.com/api/v1/accounting/mail.list \
-H "Authorization: Bearer $OATMILK_API_KEY"{
"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.
curl https://app.getoatmilk.com/api/v1/accounting/mail.list \
-H "Authorization: Bearer $OATMILK_API_KEY"More in Inbox and uploads.