---
title: "Rotate Webhook Secret"
method: POST
path: "/webhooks/{webhook_id}/rotate-secret"
tags: ["Webhooks"]
---

# Rotate Webhook Secret

`POST /webhooks/{webhook_id}/rotate-secret`

## Request

- Base URL: `https://api.feedback1.ai/api/v1`
- URL: `https://api.feedback1.ai/api/v1/webhooks/{webhook_id}/rotate-secret`
- Auth: HTTP bearer

Rotate the webhook secret.

Generates a new secret. The old secret will immediately stop working.
Returns the new secret - store it securely!

## Path parameters

- `webhook_id` string, required

## Response `200`

Successful Response

- WebhookCreated: Response after creating a webhook - includes the secret (only shown once!)
  - `id` string, required
  - `name` string, required
  - `url` string, required
  - `secret` string, required: Webhook secret for signature verification - SAVE THIS!
  - `events` string[], required
  - `product_ids` string[], nullable, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/feedback1/apis/feedback1-public-api.md) · [All operations](https://skmtc.dev/feedback1/apis/feedback1-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/feedback1/apis/feedback1-public-api/revisions/e7626420f622?raw)
