---
title: "Rotate webhook secret"
method: POST
path: "/webhook-endpoints/{id}/rotate-secret"
tags: ["Webhooks"]
---

# Rotate webhook secret

`POST /webhook-endpoints/{id}/rotate-secret`

## Request

- Base URL: `https://workflow.loopfour.ai/api/v1`
- URL: `https://workflow.loopfour.ai/api/v1/webhook-endpoints/{id}/rotate-secret`
- Auth: API key in header `x-api-key`

Generates a new signing secret for the webhook endpoint.

## Path parameters

- `id` string, required

## Response `200`

Secret rotated

- object
  - `success` unknown
  - `data` object
    - `secret` string

## Other responses

- `401`: Missing or invalid API key.
- `403`: Forbidden — insufficient permissions for this resource.
- `404`: Resource not found.

---

[API](https://skmtc.dev/loopfour/apis/loopfour-workflows-api.md) - [All operations](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/revisions/872822a3af00?raw)
