# Rotating a webhook's secret

You can rotate a webhook's secret in your [Digital River Dashboard](https://dashboard.digitalriver.com) if you think a webhook's secret is compromised. When you rotate the secret, the Digital River Dashboard blocks the old secret and generates a new one. When you rotate the secret, you can block the old secret immediately or allow it to expire after the specified expiration time. During that specified expiration time, both secrets work. It gives you time to transition from the old secret to the new one. In either case, you can use the new secret immediately.

To rotate a webhook's secret:

1. From the **Webhooks** page on the  [Digital River Dashboard](https://dashboard.digitalriver.com), click **More options** (vertical ellipses) associated with the key you want to rotate and click **Rotate**.

   <figure><img src="/files/8YEng5USDJhrEsoYjDkO" alt=""><figcaption></figcaption></figure>
2. Choose the expiration time from the **Choose expiration** list.

   <figure><img src="/files/iSZ19W5XZgmbXh1d6MzE" alt=""><figcaption></figcaption></figure>
3. Enter your password and click **Rotate webhook signature secret**. The Webhooks page will display the signing secret and **New** next to the modified webhook.

   <figure><img src="/files/konRg9H7eEkwW0O6PuMQ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/digital-river-api/administration/dashboard/developers/webhooks/rotating-a-webhooks-secret.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
