---
title: "Rotate webhook secret"
method: POST
path: "/api/v3/webhook_subscriptions/{id}/rotate_secret"
tags: ["Webhook Subscriptions"]
---

# Rotate webhook secret

`POST /api/v3/webhook_subscriptions/{id}/rotate_secret`

Generates a new signing secret for the webhook subscription.

## Path parameters

- `id` string, webhookSubscriptionId, required — Webhook subscription ID

## Response `200`

Webhook secret rotated

- object
  - `id` string, webhookSubscriptionId, required — Subscription ID
  - `secret` string, required — New signing secret

## Other responses

- `401` — Unauthorized
- `404` — Subscription not found
- `500` — Internal server error

---

[API](https://skmtc.dev/composiohq/apis/composio-platform-api.md) · [All operations](https://skmtc.dev/composiohq/apis/composio-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/composiohq/composio-platform-api/revisions/368fb7851f42/schema)
