---
title: "Reset Webhook Endpoint Secret"
method: PATCH
path: "/v1/webhooks/endpoints/{id}/secret"
tags: ["webhooks", "public"]
---

# Reset Webhook Endpoint Secret

`PATCH /v1/webhooks/endpoints/{id}/secret`

Regenerate a webhook endpoint secret.

**Scopes**: `webhooks:write`

## Path parameters

- `id` string, uuid4, required — The webhook endpoint ID.

## Response `200`

Webhook endpoint secret reset.

- WebhookEndpoint — A webhook endpoint.
  - `created_at` string, date-time, required — Creation timestamp of the object.
  - `modified_at` string, date-time, nullable, required — Last modification timestamp of the object.
  - `id` string, uuid4, required — The ID of the object.
  - `url` string, required — The URL where the webhook events will be sent.
  - `name` string, nullable — An optional name for the webhook endpoint to help organize and identify it.
  - `format` 'raw' | 'discord' | 'slack', required
  - `secret` string, required — The secret used to sign the webhook events.
  - `organization_id` string, uuid4, required — The organization ID associated with the webhook endpoint.
  - `events` WebhookEventType[], required — The events that will trigger the webhook.
  - `enabled` boolean, required — Whether the webhook endpoint is enabled and will receive events.

## Other responses

- `404` — Webhook endpoint not found.
- `422` — Validation Error

---

[API](https://skmtc.net/polar/apis/polar-api.md) · [All operations](https://skmtc.net/polar/apis/polar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polar/polar-api/versions/964f974aceff/schema)
