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

# Rotate webhook secret

`POST /api/v3.1/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.net/composiohq/apis/composio-platform-api-v3-1.md) · [All operations](https://skmtc.net/composiohq/apis/composio-platform-api-v3-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/composiohq/composio-platform-api-v3-1/revisions/4239836857f8/schema)
