# disconnectDirectMail

Disconnect one direct-mail provider connection by connectionId (from listIntegrations directMailConnectionQuery.list). New workflow mail sends through it are refused; mail already submitted to the provider is NOT cancelled and may still be delivered. 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": "disconnectDirectMail", "variables": {...} }`
- Scope: `ADMIN`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `connectionId`: `ID!` (required)

## Response (data, an example)

```json
{
  "directMailConnectionMutation": {
    "disconnect": 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": "disconnectDirectMail",
    "variables": {
      "connectionId": "<connectionId>"
    }
  }'
```
