# searchInteractions

Contacts by what was SAID on calls, notes, texts or emails. Pass the clues as a sentence; verify each clue in the top ones' history before naming anyone.

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

## Variables

- `query`: `String!` (required)
- `kinds`: `[InteractionKind!]` (one of `CALL_SUMMARY`, `CALL_TRANSCRIPT`, `MEETING`, `NOTE`, `TEXT_DAY`, `EMAIL`, `BRIEF`)
- `since`: `DateTime`
- `contactId`: `ID`
- `limit`: `Int` (default `10`)

## Response (data, an example)

```json
{
  "contactQuery": {
    "searchInteractions": {
      "contacts": [
        {
          "contactId": "<ID>",
          "personName": "…",
          "isArchived": true,
          "score": 0,
          "matches": [
            {
              "kind": "CALL_SUMMARY",
              "occurredAt": "2026-01-01T00:00:00.000Z",
              "teammateName": "…",
              "snippet": "…",
              "sourceGrn": "…"
            }
          ]
        }
      ]
    }
  }
}
```

## Example

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