Admin webhooks
List webhook delivery records (admin)
Admin variant of GET /v1/webhooks/deliveries. Scoped by tenantId only — returns all delivery records in the tenant. Optional endpoint_id narrows further. Cursor-based pagination via cursor + limit.
curl -X GET "https://api.miracle.com/v1/admin/webhook-deliveries"{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
"endpointId": "c8d2c7e1-e4b1-4108-9e29-3429a36a1ef3",
"eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
"eventType": "string",
"eventPayload": {
"property1": null,
"property2": null
},
"status": "pending",
"attempts": [
{
"attemptNumber": 0,
"requestedAt": "string",
"responseStatus": 0,
"responseBody": "string",
"durationMs": 0,
"error": "string"
}
],
"attemptCount": 0,
"maxAttempts": 0,
"nextRetryAt": "string",
"createdAt": "string",
"updatedAt": "string"
}
],
"pagination": {
"nextCursor": "string",
"prevCursor": "string",
"hasMore": true,
"totalCount": 0
}
}Empty
Empty
Get webhook delivery record (admin)
Admin variant of GET /v1/webhooks/deliveries/:id. Returns a single delivery record scoped by tenantId — no further merchant-level ownership check.
Create webhook endpoint (admin)
Admin variant of POST /v1/webhooks/endpoints. Creates a webhook endpoint at the tenant or platform level based on the caller context. Signing secret is returned ONCE in this response — store it securely. URL must use HTTPS.