---
title: "POST /webhooks/{id}/rotate-secret"
method: POST
path: "/webhooks/{id}/rotate-secret"
---

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

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

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/webhooks/{id}/rotate-secret`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `id` string, required: Unique identifier of the webhook whose secret to rotate

## Request body

- object: Request body for rotating a webhook signing secret

## Response `200`

OK

- object: Result of rotating a webhook signing secret
  - `id` string, required: Unique identifier of the webhook
  - `secret` string, required: The new signing secret, returned only once. Update your receiver to verify with this value; the previous secret stops working immediately.

---

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