# Edit a webhook

**Summary:** Open a webhook to change its settings, events and status, view its delivery logs, regenerate the signing secret or delete it.

- Role: [Developers](https://www.subrite.no/developers)
- Source: https://www.subrite.no/developers/edit-a-webhook
- Updated: 2026-10-22
- Markdown index: https://www.subrite.no/developers/llms.txt

Open the webhook from the list, or choose **Edit** in its **Actions** column. The webhook has four tabs.

<a id="general"></a>
### General

Change the name, description, endpoint URL, request method and authentication, and switch the webhook on or off with **Active**. Inactive webhooks receive no deliveries. Click **Save**.

The stored bearer token is never shown. Leave the **Token** field empty to keep it, or enter a new one to replace it.

![edit webhook general settings](https://cdn.sanity.io/images/1x2xswq6/production/f72193c7200f999471d4119c6ddd2cb2a72b58f1-2332x1534.png?w=1600&fit=max&auto=format)

![edit webhook general](https://cdn.sanity.io/images/1x2xswq6/production/467002cdae33442bb23a977911559517ef020461-2302x614.png?w=1600&fit=max&auto=format)

<a id="events"></a>
### Events

Select or unselect events and click **Save**. Only the events you change are affected:

- **An event you unselect** loses its delivery log. Subrite shows a warning and asks you to confirm before it saves.
- **An event that stays selected** keeps its delivery log, even when you unselect other events in the same save.
- **An event you newly select** starts with an empty delivery log.

Saving the **General** tab never changes your events or their delivery logs.

![webhook edit events tab](https://cdn.sanity.io/images/1x2xswq6/production/9fea4ab50f8da1034c5630109b3b6003d5be4f95-2336x1120.png?w=1600&fit=max&auto=format)

![edit events alert modal](https://cdn.sanity.io/images/1x2xswq6/production/a165707a64a36a6e1cc62a1d50e316443c0682eb-2372x974.png?w=1600&fit=max&auto=format)

<a id="logs"></a>
### Logs

Each row is one delivery attempt, newest first, with the event, attempt number, status and response code. Click a row to see the request headers, request body and response. The `Authorization` header is always masked.

Subrite tries a delivery up to 8 times. After 90 days, the member data in the request body is removed. The rest of the delivery log, including the response, is kept.

![webhook logs](https://cdn.sanity.io/images/1x2xswq6/production/4b05661cdb80abf20355dbc8ec08f67217d97db7-2370x1118.png?w=1600&fit=max&auto=format)

![log details](https://cdn.sanity.io/images/1x2xswq6/production/571dbee43b614b20fa8ad685b487f3025bea3fce-2026x1612.png?w=1600&fit=max&auto=format)

<a id="settings"></a>
### Settings

**Regenerate signing secret** replaces the secret. The previous secret stops working immediately, so update your endpoint with the new one. The new secret is shown only once.

![webhook edit settings tab](https://cdn.sanity.io/images/1x2xswq6/production/d3e9982785ef0e505e2447f7966920dd33774307-2344x1006.png?w=1600&fit=max&auto=format)

<a id="activate-or-deactivate-a-webhook"></a>
## Activate or deactivate a webhook

In the list, choose **Activate** or **Deactivate** in the webhook's **Actions** column. You can also use the **Active** switch on the General tab.

<a id="delete-a-webhook"></a>
## Delete a webhook

Open the webhook, go to the **Settings** tab and click **Delete webhook**, or choose **Delete** in its **Actions** column in the list. Deliveries stop immediately and the delivery log is deleted. This cannot be undone.

![delete webhook alert](https://cdn.sanity.io/images/1x2xswq6/production/06f110f1c6b06ceb26e4ec402c2827d7c348266a-2340x960.png?w=1600&fit=max&auto=format)
