---
title: "Regenerate webhook secret"
method: POST
path: "/webhooks/{id}/regenerate-secret"
tags: ["Webhooks"]
---

# Regenerate webhook secret

`POST /webhooks/{id}/regenerate-secret`

Generate a new secret for a webhook. The old secret will be invalidated.
Make sure to update your webhook handler with the new secret.

## Path parameters

- `id` string, required

## Response `200`

Secret regenerated

- object
  - `success` boolean
  - `secret` string — New webhook secret

## Other responses

- `404` — Webhook not found
- `500` — Server error

---

[API](https://skmtc.dev/publora/apis/publora-api.md) · [All operations](https://skmtc.dev/publora/apis/publora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/publora/publora-api/revisions/a1534a88d80a/schema)
