---
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`

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.net/orangelogic/apis/security.md) · [All operations](https://skmtc.net/orangelogic/apis/security/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orangelogic/security/revisions/c8e945426c5e/schema)
