---
title: "Rotate the HMAC secret"
method: POST
path: "/webhooks/{id}/rotate-secret"
tags: ["Webhooks"]
---

# Rotate the HMAC secret

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

## Request

- Base URL: `https://api.imprezahost.com/v1`
- URL: `https://api.imprezahost.com/v1/webhooks/{id}/rotate-secret`
- Auth: API key in header `X-API-Key` and API key in header `X-API-Secret`

Generates a fresh signing secret. The previous one becomes invalid
immediately. New secret is returned ONCE.

## Path parameters

- `id` integer, required

## Response `200`

New secret returned

## Other responses

- `404`: Resource not found

---

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