# documentRequests.send

Email a document request with an expiring private upload link and an authenticated reply path. Requires a recipient and idempotency key.

`POST /api/v1/accounting/documentRequests.send`

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

MCP tool: `accounting_document_requests_send`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `entryId` | string (ID) |  | The ID of an accounting entry, from entries.list or attention.mine. |
| `contractorId` | string (ID) |  | The ID of a contractor, from contractors.list. |
| `email` | string (email) | Yes | An email address. at most 254 characters. |
| `title` | string | Yes | A short title. 3–160 characters. |
| `message` | string |  | at most 2000 characters. Default `""`. |
| `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–160 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/documentRequests.send \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "email": "finance@example.com",
  "title": "Synthetic services agreement"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/documentRequests.send
