# listEmailOptOuts

Who opted out of email (unsubscribed, a spam complaint, blocked by a teammate, imported), newest first: email, source, reason, optedOutAt and the contacts you can see carrying it. Addresses no contact you see carries are never listed (totalCount and notVisibleCount, null unless you may see every contact, count them). Hard bounces are not opt-outs and are left out (a bounced message reads deliveryStatus BOUNCED in getEmailThread). Texts: listSmsOptOuts.

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

## Variables

- `limit`: `Int` (default `25`)
- `since`: `DateTime`

## Response (data, an example)

```json
{
  "contactQuery": {
    "emailOptOuts": {
      "items": [
        {
          "email": "…",
          "source": "EMAIL_UNSUBSCRIBE",
          "reason": "…",
          "optedOutAt": "2026-01-01T00:00:00.000Z",
          "contacts": [
            {
              "id": "<ID>",
              "name": "…"
            }
          ]
        }
      ],
      "totalCount": 0,
      "notVisibleCount": 0,
      "hasMore": true,
      "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": "listEmailOptOuts",
    "variables": {}
  }'
```
