# requests.create

Ask an eligible person to resolve a record, optionally with a personal message. Find the eligible people and their assigneeUserId with requests.people first. Creates their personal task immediately and batches their notification email after ten minutes. Requires an idempotency key; one open request per record and recipient.

`POST /api/v1/accounting/requests.create`

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

MCP tool: `accounting_requests_create`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `subjectType` | enum | Yes | The kind of record this is about, such as entry, invoice or mail. One of: `entry`, `submission`, `mail`, `statement`, `contractor`, `timesheet`, `compliance_item`, `intake_item`. |
| `subjectId` | string (ID) | Yes | The ID of the record this is about. |
| `assigneeUserId` | string | Yes | 1–200 characters. |
| `message` | string |  | at most 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/requests.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "subjectType": "entry",
  "subjectId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "assigneeUserId": "example"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/requests.create
