# accountant.work.request

Accountants with comment access: ask a verified company administrator to classify or reconcile explicitly selected recordKeys from your saved previewId/fingerprint. Preserves the static cohort and exact source/report context; creates one assigned company task and schedules email. The original approval covers the request and automatic completion notices back to the accountant after actual canonical work. Queued is not delivered; opening, replying or marking Done cannot clear failing record checks. Requires assigneeUserId, reason and idempotencyKey.

`POST /api/v1/accounting/accountant.work.request`

Permissions: `accounting:read`, `accounting:write` · Roles:  · Idempotency key required · Reaches outside Oatmilk (email or a provider)

MCP tool: `accounting_accountant_work_request`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `previewId` | string (ID) | Yes | The ID of the related record. |
| `fingerprint` | string | Yes | SHA-256 hash as 64 lowercase hex characters. |
| `recordKeys` | array of strings | Yes | 1–100 items; each Matches ^(entry\|bank_transaction):[a-f0-9-]{36}$. |
| `assigneeUserId` | string | Yes | 1–200 characters. |
| `reason` | string | Yes | A short note saying why, kept in the record's history. 10–2000 characters. |
| `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/accountant.work.request \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "previewId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "fingerprint": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c",
  "recordKeys": [
    "entry:111111111111111111111111111111111111"
  ],
  "assigneeUserId": "example",
  "reason": "Synthetic example from the docs"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/accountant.work.request
