> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# rotateWebhookSecret

> Replaces the signing secret of a webhook and returns the new one, shown only here. The old secret stops working at once: every delivery from now on, retries included, is signed with the new one. Fails with a top-level `ValidationError` for an event destination that isn't a webhook.



**mutation** `rotateWebhookSecret(input: RotateWebhookSecretInput!): RotateWebhookSecretPayload!`

## Arguments

**`input`**: `RotateWebhookSecretInput!` (required)

## Returns

`RotateWebhookSecretPayload!`

**`rotatedWebhookSecret`**: `RotatedWebhookSecret`

## Examples

```graphql Mutation
mutation RotateWebhookSecret($input: RotateWebhookSecretInput!) {
  rotateWebhookSecret(input: $input) {
    rotatedWebhookSecret {
      signingSecret
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "rotateWebhookSecret": {
      "rotatedWebhookSecret": {
        "signingSecret": "string"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.