# dataImports.history

List imports, newest first, with their source database, status and counts. Filter by target or database.

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

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

MCP tool: `accounting_data_imports_history`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `target` | enum |  | One of: `invoices`, `contractor_payments`. |
| `databaseId` | string |  | 1–200 characters. |
| `limit` | integer |  | How many results to return at most. 1 to 100. Default `20`. |
| `offset` | integer |  | How many results to skip, for the next page of a list. 0 to 100000. Default `0`. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/dataImports.history \
  -H "Authorization: Bearer $OATMILK_API_KEY"
```

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