# notion.search

Search Notion databases (data sources) or pages that are shared with the integration, most recently edited first.

`GET | POST /api/v1/accounting/notion.search`

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

MCP tool: `accounting_notion_search`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string |  | Text to search for. at most 200 characters. |
| `kind` | enum |  | Which kind of record or job this is. One of: `data_source`, `page`. Default `"data_source"`. |
| `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 https://app.getoatmilk.com/api/v1/accounting/notion.search \
  -H "Authorization: Bearer $OATMILK_API_KEY"
```

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