> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autosnap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reactivate Webhook

> Re-enable an auto-disabled webhook subscription.

`PATCH /v1/webhooks/{webhook_id}/reactivate`

Re-enable a webhook subscription that was automatically disabled after reaching its failure threshold. Resets `failure_count` to 0 and sets `active` back to `true`.

Use this after fixing the issue that caused delivery failures (e.g., your endpoint was down, returned 5xx, or timed out).

## Parameters

| Name         | Type    | In    | Required | Description                 |
| ------------ | ------- | ----- | -------- | --------------------------- |
| `webhook_id` | integer | path  | Yes      | The webhook subscription ID |
| `api_key`    | string  | query | Yes      | Your API key                |

## Example

```bash theme={null}
curl -X PATCH "https://api.autosnap.com/v1/webhooks/42/reactivate?api_key=YOUR_API_KEY"
```

## Response

```json theme={null}
{
  "success": true,
  "webhook": {
    "id": 42,
    "event_type": "vehicle.created",
    "url": "https://your-server.com/webhooks/autosnap",
    "active": true,
    "failure_count": 0,
    "max_failures": 10
  },
  "message": "Webhook re-enabled. Failure count reset to 0."
}
```

## Bulk Reactivate

To re-enable **all** disabled webhooks at once:

```bash theme={null}
curl -X PATCH "https://api.autosnap.com/v1/webhooks/reactivate-all?api_key=YOUR_API_KEY"
```

```json theme={null}
{
  "success": true,
  "reactivated": 3,
  "webhooks": [
    {"id": 42, "event_type": "vehicle.created", "url": "https://..."},
    {"id": 43, "event_type": "import.complete", "url": "https://..."},
    {"id": 44, "event_type": "vehicle.removed", "url": "https://..."}
  ]
}
```

## Errors

| Status | Description                                   |
| ------ | --------------------------------------------- |
| 404    | Webhook not found or not owned by this client |
