# complianceLibrary.entries.create

Platform administrators only: write a new compliance library entry (title, topic, and optional summary, keyPoints, meaning and markdown notes). A person's entry is protected: an agent's later change to it is proposed, never applied.

`POST /api/v1/accounting/complianceLibrary.entries.create`

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

MCP tool: `accounting_compliance_library_entries_create`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `title` | string | Yes | A short title. 1–200 characters. |
| `topic` | enum | Yes | One of: `hiring`, `contractors`, `agreements`, `employment`, `payroll`, `privacy`, `taxes`. |
| `summary` | string |  | at most 2000 characters. |
| `keyPoints` | array of strings |  | at most 20 items; each at most 400 characters. |
| `meaning` | string |  | at most 4000 characters. |
| `notes` | string |  | Notes kept with the record. at most 20000 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/complianceLibrary.entries.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "title": "Synthetic services agreement",
  "topic": "hiring"
}'
```

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