# duplicateContactsByRep

findDuplicateContactGroups tallied per assigned rep (point person) in ONE call: per rep, groupCount (groups holding one of their contacts) and contactCount; userId null = unassigned. totalGroups, truncated (past 500 groups).

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "duplicateContactsByRep", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `matchBy`: `DuplicateContactMatch` (default `NAME_AND_CONTACT_INFO`, one of `NAME_AND_CONTACT_INFO`, `NAME`)

## Response (data, an example)

```json
{
  "contactQuery": {
    "duplicateContactsByRep": {
      "reps": [
        {
          "userId": "<ID>",
          "name": "…",
          "groupCount": 0,
          "contactCount": 0
        }
      ],
      "totalGroups": 0,
      "truncated": true
    }
  }
}
```

## Example

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