# disconnectDialer

Disconnect a campaign dialer, provider ENZO or READYMODE, with EVERY campaign the organization linked to it (listIntegrations shows them); their calls stop syncing. Connecting again needs the customer's own login in the app (getIntegrationSetupUrls), so confirm with the user first. Organization admins only.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "disconnectDialer", "variables": {...} }`
- Scope: `ADMIN`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `provider`: `CampaignDialerProvider!` (required, one of `ENZO`, `READYMODE`). A dialer that keeps one config per campaign and connects through `connectDialerIntegration`. Both post to the same `/calls/enzo` route; the integration row, not the delivery, says which one a call came from.

## Response (data, an example)

```json
{
  "oauthMutation": {
    "disconnectAllDialerIntegrations": {
      "id": "<ID>",
      "dialerIntegrationStatus": {
        "connected": true
      }
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "disconnectDialer",
    "variables": {
      "provider": "ENZO"
    }
  }'
```
