GET /admin/webhooks/stats

Get webhook delivery statistics including success/failure rates

Responses

  • 200 application/json

    Webhook statistics retrieved successfully

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data object
      Hide data attributes Show data attributes object
      • total_webhooks integer
      • active_webhooks integer
      • total_deliveries_24h integer
      • successful_deliveries_24h integer
      • failed_deliveries_24h integer
      • success_rate number
  • 401 application/json

    Unauthorized - Invalid admin secret

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
GET /admin/webhooks/stats
curl \
 --request GET 'http://localhost:7001/admin/webhooks/stats' \
 --header "X-Admin-Secret: $API_KEY"
Response examples (200)
{
  "code": 200,
  "data": {
    "success_rate": 99.26,
    "total_webhooks": 12,
    "active_webhooks": 10,
    "total_deliveries_24h": 5420,
    "failed_deliveries_24h": 40,
    "successful_deliveries_24h": 5380
  },
  "status": true,
  "message": "Webhook statistics retrieved successfully"
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Webhook statistics retrieved successfully",
  "data": {
    "total_webhooks": 12,
    "active_webhooks": 10,
    "total_deliveries_24h": 5420,
    "successful_deliveries_24h": 5380,
    "failed_deliveries_24h": 40,
    "success_rate": 99.26
  }
}
Response examples (401)
{
  "code": 401,
  "error": "Invalid or missing admin secret",
  "status": false,
  "message": "Unauthorized"
}
Response examples (401)
{
  "status": false,
  "code": 401,
  "message": "Unauthorized",
  "error": "Invalid or missing authentication"
}
Response examples (500)
{
  "code": 500,
  "error": "Failed to retrieve webhook statistics",
  "status": false,
  "message": "Internal server error"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}