# notion.dataSources.query

Preview rows of a Notion data source with simplified property values, optionally filtered by a title search. Paged with cursor. Properties whose names say they hold payment or tax details (bank, account, transit, institution and routing numbers, IBAN, SWIFT/BIC, Wise or Interac addresses, SIN, SSN, business or tax numbers) read as [hidden], and what they hold is hidden anywhere else in the rows too.

`GET | POST /api/v1/accounting/notion.dataSources.query`

Permissions: `accounting:read` · Roles: admin, finance · Reaches outside Oatmilk (email or a provider)

MCP tool: `accounting_notion_data_sources_query`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string | Yes | The record's ID. 32–36 characters. |
| `search` | string |  | Text to search for. at most 100 characters. |
| `cursor` | string |  | Where the next page starts: the nextCursor value from the previous response. 1–200 characters. |
| `limit` | integer |  | How many results to return at most. 1 to 50. Default `20`. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/notion.dataSources.query \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e'
```

Reference page: https://app.getoatmilk.com/docs/api/notion.dataSources.query
