Miracle Docs
Admin webhooks

Rotate webhook endpoint signing secret (admin)

Admin variant of POST /v1/webhooks/endpoints/:id/rotate-secret. Generates a new HMAC-SHA256 signing secret. The new secret is returned ONCE — store it securely. The previous secret is replaced immediately.

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

In: header

Path Parameters

id*string

Response Body

application/json

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

On this page