> For the complete documentation index, see [llms.txt](https://developer.redstonepgs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.redstonepgs.com/generate-webhook-secret.md).

# 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.
