# contractorOps.agreements.importExecuted

Mark an already-signed agreement as this contractor's executed agreement using a fileId from the signing upload flow, a title, the execution date, and idempotencyKey.

`POST /api/v1/accounting/contractorOps.agreements.importExecuted`

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

MCP tool: `accounting_contractor_ops_agreements_import_executed`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `contractorId` | string (ID) | Yes | The ID of a contractor, from contractors.list. |
| `fileId` | string | Yes | 1–200 characters. |
| `title` | string | Yes | A short title. 1–200 characters. |
| `executedOn` | string (date) | Yes | A date, as YYYY-MM-DD. |
| `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/contractorOps.agreements.importExecuted \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "contractorId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
  "fileId": "example",
  "title": "Synthetic services agreement",
  "executedOn": "2026-09-01"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/contractorOps.agreements.importExecuted
