---
title: "Api Webhooks Rotate Create"
method: POST
path: "/api/webhooks/{id}/rotate/"
tags: ["webhooks"]
---

# Api Webhooks Rotate Create

`POST /api/webhooks/{id}/rotate/`

POST /api/webhooks/<id>/rotate/ - Rotate webhook secret

Generates a new webhook secret. The new secret takes effect immediately.
Update your server promptly to avoid webhook delivery failures.

Path Parameters:
    - id (int): Webhook ID

Response (200 OK):
    {
        "id": 123,
        "name": "My Webhook",
        "secrets": "whsec_new123...",
        "message": "Secret rotated successfully. Update your server immediately."
    }

Error Responses:
    - 404: Webhook not found or doesn't belong to organization

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string, required

## Response `200`

- WebhookRotate — Response serializer for rotation endpoint
  - `id` integer, required
  - `name` string, required
  - `secrets` string, required
  - `message` string, required

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
