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

# Rotate Webhook Secret

`POST /v1/webhooks/{webhookId}/rotate-secret`

## Request

- Base URL: `https://api.racehooks.io`
- URL: `https://api.racehooks.io/v1/webhooks/{webhookId}/rotate-secret`
- Auth: API key in header `Authorization`

Rotate the HMAC signing secret for an endpoint (applies to all of its feeds).

## Path parameters

- `webhookId` string, required

## Response `200`

Default Response

- object
  - `data` object
    - `webhookId` string
    - `webhookSecret` string
    - `note` string

## Other responses

- `401`: Missing or invalid Bearer token
- `404`: Webhook not found

---

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