# dataImports.suggest

Suggest a column of a connected database (Notion) for each field of an import target, with a sample value per column, the status options found, and the mapping remembered for that database. Supply target, source and databaseId. A column whose name says it holds payment or tax details is marked sensitive, has no sample or options, and is never suggested or imported.

`GET | POST /api/v1/accounting/dataImports.suggest`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_data_imports_suggest`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `target` | enum | Yes | One of: `invoices`, `contractor_payments`. |
| `source` | enum |  | Where the record came from. One of: `notion`. Default `"notion"`. |
| `databaseId` | string | Yes | 1–200 characters. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/dataImports.suggest \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'target=invoices' \
  --data-urlencode 'databaseId=example'
```

Reference page: https://app.getoatmilk.com/docs/api/dataImports.suggest
