---
title: "Generate a secret key for a webhook signature"
method: POST
path: "/rotatesecret_22P_v1"
---

# Generate a secret key for a webhook signature

`POST /rotatesecret_22P_v1`

## Request

- Base URL: `https://orangelogicURL/webapi/extensibility/webhook/subscription`
- URL: `https://orangelogicURL/webapi/extensibility/webhook/subscription/rotatesecret_22P_v1`
- Auth: none required

Generate or update the secret key for a webhook signature

## Request body

- object
  - `newSecret` string: An alphanumeric string to be the <code>newSecret</code>. If you leave this parameter empty, Orange Logic generates a random secret and adds it to the response body.
  - `subscriptionID` string: The subscriptionID of the webhook you are creating a secret for.

## Response `200`

200

- object
  - `newSecret` string

---

[API](https://skmtc.dev/orangelogic/apis/webhooks.md) - [All operations](https://skmtc.dev/orangelogic/apis/webhooks/llms.txt) - [OpenAPI document](https://skmtc.dev/orangelogic/apis/webhooks/revisions/e5b96f12e9c7?raw)
