Connectors and webhooks

dataSources.readText

Read the text of a CSV or plain-text file attached to a row or page (up to 2 MB, UTF-8), for example a bank statement to import with imports.preview and imports.commit. Nothing is stored.

GETPOST/api/v1/accounting/dataSources.readText

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

accounting_data_sources_read_text

Fields

  • sourceenumRequired

    Where the record came from.

    notiongoogle_driveonedrive
  • itemIdstringRequired

    1–200 characters · Matches ^[A-Za-z0-9_.:-]+$

  • fileIdstringRequired

    1–200 characters · Matches ^[A-Za-z0-9_.:-]+$

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/dataSources.readText \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'source=notion' \
  --data-urlencode 'itemId=item_id' \
  --data-urlencode 'fileId=file_id'
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/dataSources.readText
curl -G https://app.getoatmilk.com/api/v1/accounting/dataSources.readText \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'source=notion' \
  --data-urlencode 'itemId=item_id' \
  --data-urlencode 'fileId=file_id'

More in Connectors and webhooks.