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.
Authorization
bearer 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
List webhook endpoints (admin)
Admin variant of GET /v1/webhooks/endpoints. Lists endpoints scoped to the caller owner level (tenant or platform). Signing secrets are never included.
Update webhook endpoint (admin)
Admin variant of PATCH /v1/webhooks/endpoints/:id. Updates mutable fields (url, events, description, status). Events, if provided, REPLACE the previous subscription set.