# compliancePortal.search

Search the compliance portal in plain words: library guides, rules from official sources, decisions waiting for this member and topics. Word matching shortlists candidates and a fast classifier (Jev) ranks what the person means. Optional kinds (entry, rule, item, topic) narrows it, limit up to 20. Each hit has its kind, title, the passage that matched and how relevant the classifier judged it.

`GET | POST /api/v1/accounting/compliancePortal.search`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_compliance_portal_search`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | Yes | Text to search for. 2–500 characters. |
| `limit` | integer |  | How many results to return at most. 1 to 20. |
| `kinds` | array of enum values |  | One of: `entry`, `rule`, `item`, `topic`. at most 4 items. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/compliancePortal.search \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'query=office supplies'
```

Reference page: https://app.getoatmilk.com/docs/api/compliancePortal.search
