# findContactsByNote

Contacts by what their NOTES say; for calls, texts and emails too, use searchInteractions. One row per contact with a ~100-char noteSnippet, not the body. Silent limits: notes from the LAST YEAR; 4+ characters of free text (not an email, phone or parcel id: use findContacts); at most 50 contacts from 500 candidate notes, so totalCount is that capped set and empty proves nothing.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "findContactsByNote", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no
- Result cap: `limit` is clamped to 50, without an error

## Variables

- `searchTerm`: `String!` (required)
- `limit`: `Int` (default `20`)
- `offset`: `Int` (default `0`)
- `includeArchived`: `Boolean` (default `false`)

## Response (data, an example)

```json
{
  "contactQuery": {
    "getContactNoteResults": {
      "results": [
        {
          "contactId": "<ID>",
          "personName": "…",
          "noteSnippet": "…",
          "isArchived": true
        }
      ],
      "totalCount": 0,
      "hasMore": true
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "findContactsByNote",
    "variables": {
      "searchTerm": "<String>"
    }
  }'
```
