# Generate webhook secret

This endpoint is used to generate a webhook secret that is essential for authenticating the sources of webhooks.

<mark style="color:green;">POST :</mark> v1/account/generate-webhook-secret

#### Headers

| Name       | Type   | Descrition                |
| ---------- | ------ | ------------------------- |
| secret-key | string | Your Redstone  secret key |
| public-key | string | Your Redstone  public key |

#### Response

On a successful request, the API will return a response with the following structure:&#x20;

* webhook\_secret (string): The generated webhook secret that will be used for authentication.

```
{
  "status": "",
  "code": 0,
  "message": "",
  "data": {
    "webhook_secret": ""
  }
}

            
```

**NOTE**: The generated webhook secret should be stored securely and used to verify the authenticity of incoming webhook requests.


---

# 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://developer.redstonepgs.com/generate-webhook-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.
