---
title: "RotateWorkflowWebhookSecret"
method: POST
path: "/gitpod.v1.WorkflowService/RotateWorkflowWebhookSecret"
tags: ["gitpod.v1.WorkflowService"]
---

# RotateWorkflowWebhookSecret

`POST /gitpod.v1.WorkflowService/RotateWorkflowWebhookSecret`

Rotates the webhook secret for a workflow.

 Use this method to:
 - Generate a new webhook secret
 - Invalidate the old webhook secret

 ### Examples

 - Rotate webhook secret:

   Generates a new webhook secret for the workflow.

   ```yaml
   workflowId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
   ```

## Request body

- GitpodV1RotateWorkflowWebhookSecretRequest
  - `workflowId` string, uuid

## Response `200`

Success

- GitpodV1RotateWorkflowWebhookSecretResponse
  - `secret` string — The new webhook secret (decrypted)

## Other responses

- `default` — Error

## Changes

- **2025-12-15** `d62ef4b9187c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.WorkflowService/RotateWorkflowWebhookSecret/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
