Miracle Docs
Webhooks

Rotate webhook endpoint signing secret

Generates a new HMAC-SHA256 signing secret for the specified endpoint. The new secret is returned ONCE in this response — store it securely. The previous secret is replaced immediately.

POST
/v1/webhooks/endpoints/{id}/rotate-secret
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

curl -X POST "https://api.miracle.com/v1/webhooks/endpoints/string/rotate-secret"
{
  "data": {
    "secret": "string"
  }
}
Empty

On this page