Admin webhooks
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.
curl -X GET "https://api.miracle.com/v1/admin/webhook-endpoints"{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"ownerType": "merchant",
"ownerId": "string",
"tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
"url": "http://example.com",
"description": "string",
"events": [
"string"
],
"status": "active",
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null
}
]
}Empty
Get webhook endpoint (admin)
Admin variant of GET /v1/webhooks/endpoints/:id. Returns a single endpoint by ID. The signing secret is never returned on read.
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.