# enableWebhookSubscription

Mutation

Re-enable a subscription auto-disabled by failures; optionally replay the last 24h of failures.

Available to agents as MCP tool `enableWebhookSubscription` — see [Write tools](/api/v2/docs/mcp/write-tools#enable-webhook-subscription).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `id` | `ID!` | Yes | — | UUID of the failure-disabled subscription to enable. |
| `replayFailedSince24h` | `Boolean` | No | `true` | Replay the last 24h of failed deliveries (one attempt each). Default true. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | List of user-facing errors. Empty on success. |
| `webhookSubscription` | [`WebhookSubscription`](/api/v2/docs/types/webhook-subscription) | The re-enabled subscription. Null on failure. |

## Examples

### Re-enable a failure-disabled subscription

Clear the auto-disable on a subscription that failed continuously, resetting its failure counters. replayFailedSince24h defaults to true and replays the last 24h of failed deliveries; pass false to re-enable without replaying, as this example does.

```graphql
mutation EnableWebhookSubscriptionDefault($id: ID!, $replayFailedSince24h: Boolean) {
  enableWebhookSubscription(id: $id, replayFailedSince24h: $replayFailedSince24h) {
    webhookSubscription {
      id
      name
      status
      consecutiveFailures
      disabledAt
    }
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "id": "41662e09-10c4-52e4-844a-62ddedb38f11",
  "replayFailedSince24h": false
}
```

Response — HTTP 200:

```json
{
  "data": {
    "enableWebhookSubscription": {
      "webhookSubscription": {
        "id": "41662e09-10c4-52e4-844a-62ddedb38f11",
        "name": "Northwind Analytics Sink",
        "status": "ACTIVE",
        "consecutiveFailures": 0,
        "disabledAt": null
      },
      "userErrors": []
    }
  }
}
```
