---
title: "Disable a webhook, or re-enable a disabled or failing one, without rotating its endpoint or secret."
method: PATCH
path: "/v1/workspaces/{workspaceId}/webhooks/{endpointId}"
---

# Disable a webhook, or re-enable a disabled or failing one, without rotating its endpoint or secret.

`PATCH /v1/workspaces/{workspaceId}/webhooks/{endpointId}`

## Request

- Base URL: `https://api.bangermail.com`
- URL: `https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks/{endpointId}`
- Auth: HTTP bearer

Disabling stops deliveries or inbound automation events and keeps the webhook, its name and its history. Disabling an incoming webhook also disables its connection, so Journeys it triggers stop receiving events until it is re-enabled. To remove a webhook for good, delete it.

## Request body

- object
  - `status` 'active' | 'disabled', required

## Response `200`

Webhook re-enabled or disabled.

- object
  - `data` ProductWebhook, required
    - `id` string, uuid, required
    - `kind` 'outbound' | 'inbound', required
    - `source_key` string, required
    - `name` string, required
    - `endpoint_url` string, uri, nullable
    - `status` 'active' | 'disabled' | 'error', required
    - `event_types` string[], required
    - `connection_id` string, uuid, nullable
    - `delivered_count` integer, required
    - `failed_count` integer, required
    - `last_delivered_at` string, date-time, nullable
    - `last_received_at` string, date-time, nullable
    - `last_error_code` string, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `404`: No webhook in this workspace is in a state that can change to the requested status.

---

[API](https://skmtc.dev/bangermail/apis/banger-api.md) · [All operations](https://skmtc.dev/bangermail/apis/banger-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bangermail/apis/banger-api/revisions/0705eb6ef2bc?raw)
