# autopilot.jobs.start

Start an Autopilot job. kind autopilot processes everything new or changed; kind rerun re-evaluates every transaction in an optional date range, account list or entry list, and onlyOpen skips finished ones. Transactions a person already finished or corrected are never overwritten. Returns the queued job.

`POST /api/v1/accounting/autopilot.jobs.start`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance · Idempotency key required

MCP tool: `accounting_autopilot_jobs_start`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `kind` | enum |  | Which kind of record or job this is. One of: `autopilot`, `rerun`. Default `"autopilot"`. |
| `from` | string |  | The first date to include, as YYYY-MM-DD. Date as YYYY-MM-DD. |
| `to` | string |  | The last date to include, as YYYY-MM-DD. Date as YYYY-MM-DD. |
| `accountIds` | array of strings (ID) |  | A list of record IDs. at most 50 items. |
| `entryIds` | array of strings (ID) |  | IDs of accounting entries, from entries.list or attention.mine. at most 500 items. |
| `onlyOpen` | boolean |  |  |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–200 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/autopilot.jobs.start \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'
```

Reference page: https://app.getoatmilk.com/docs/api/autopilot.jobs.start
