dataSources.files
List the files attached to a row or page: files in file columns and files embedded in the page. For google_drive, itemId is a folder (its files, partial when there are more than 200) or a file (itself); Google Docs, Sheets and Slides are listed as PDFs. With target, files already imported there are marked. File download addresses are never returned.
GETPOST
/api/v1/accounting/dataSources.filesPermissions
accounting:read
Who can call it
admin, finance
Retries
Safe to retry: it only reads
MCP
accounting_data_sources_filesFields
sourceenumRequiredWhere the record came from.
notiongoogle_driveonedriveitemIdstringRequired1–200 characters · Matches ^[A-Za-z0-9_.:-]+$
targetenumreceiptstax_sourcessigning_filesexecuted_agreementscontractor_agreementscompany_documents
Example
curl -G https://app.getoatmilk.com/api/v1/accounting/dataSources.files \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'source=notion' \
--data-urlencode 'itemId=item_id'{
"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/dataSources.files
curl -G https://app.getoatmilk.com/api/v1/accounting/dataSources.files \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'source=notion' \
--data-urlencode 'itemId=item_id'More in Connectors and webhooks.