Webhook Management Dashboard Development
Imagine launching an e-commerce store on Laravel, connecting webhooks for order notifications to CRM and Telegram. A month later, clients complain that orders aren't coming through. You dig into server logs — miles of lines, grep by timestamp — and still can't see the full picture. The error is somewhere between a timeout and an incorrect recipient response. This situation is familiar to every integrator. Our webhook management dashboard solves this: average debugging time drops from 2–3 hours to 15 minutes.
We build administrative dashboards for Webhook subscriptions that give full transparency of notification delivery. Instead of a 'black box,' you get a system where every send, status, request and response body is on screen. Automatic retries, HMAC signing, idempotency — all built into the dashboard by default.
Typical problems without a dashboard: you don't know if the webhook arrived, how many attempts it took, what the response was. Errors on the recipient side remain undetected until a client complaint. Our dashboard eliminates this blindness — you see every request in real time.
Why HMAC Signing Is Critical for Webhooks
Webhooks are insecure: anyone who knows the URL can send a fake notification. HMAC signing ensures the request came from your server and was not altered. We implement signing with sha256 and timing-safe comparison — protection against timing attacks. HMAC signing is an industry standard; without it, your webhook can be spoofed, leading to data leakage or false operations.
How to Ensure Delivery Idempotency
During failures or retries, the same event may be sent twice. We use a unique event_id for each delivery, preventing duplication. The database checks uniqueness of the (event_id, endpoint_id) pair — duplicate sends are ignored.
Exponential backoff increases delivery success rate by 3x during temporary failures compared to fixed intervals.
Compare: without a dashboard you spend hours on log files; with a dashboard you see everything in real time. Our dashboard reduces webhook debugging time by 5x compared to log analysis.
| Criteria | Without Dashboard | With Dashboard |
|---|---|---|
| Monitoring | server logs, grep | dashboard with filtering and search |
| Retries | manual or cron | automatic exponential backoff |
| Security | no signing | HMAC + timing-safe verification |
| Debugging time | hours analyzing logs | minutes |
Monitoring and Alerts
The dashboard includes monitoring with thresholds: if the percentage of failed deliveries exceeds 10% in the last hour, we send a notification to Telegram or Slack. You can configure custom alerting rules directly from the interface.
Adding a New Webhook Endpoint
The addition process takes under a minute:
- Open the Endpoints section in the sidebar.
- Click the 'Add endpoint' button.
- Enter the recipient URL, select event types (e.g.,
order.created,order.shipped), set a secret key for HMAC. - Configure delivery parameters: timeout (default 10 seconds), maximum retries (default 5).
- Save. The dashboard automatically sends a test ping to verify connectivity.
After that, the endpoint immediately starts receiving webhooks for the selected events. All deliveries are displayed in a log with filtering and drill-down capability.
Dashboard Metrics
The dashboard provides the following metrics for each endpoint and globally:
- Total webhooks sent (broken down by status: delivered, failed, retrying)
- Percentage of successful deliveries — key health indicator of the integration
- Average recipient response time (in milliseconds)
- Number of retries and attempt distribution
- Last error and full attempt log with request and response bodies
All metrics update in real time and are available as tables and charts. You can configure automatic alerts when thresholds are exceeded — for example, if the error percentage exceeds 10% in the last hour.
Database Schema
CREATE TABLE webhook_endpoints (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
url TEXT NOT NULL,
secret VARCHAR(64) NOT NULL, -- for HMAC signing
events TEXT[] NOT NULL, -- ['order.created', 'order.shipped']
is_active BOOLEAN DEFAULT TRUE,
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW(),
-- Delivery settings
timeout_ms INTEGER DEFAULT 10000,
max_retries SMALLINT DEFAULT 5,
-- Denormalized stats for fast display
total_sent INTEGER DEFAULT 0,
total_failed INTEGER DEFAULT 0,
last_sent_at TIMESTAMPTZ,
last_error TEXT
);
CREATE TABLE webhook_deliveries (
id BIGSERIAL PRIMARY KEY,
endpoint_id INTEGER REFERENCES webhook_endpoints(id),
event_type VARCHAR(100) NOT NULL,
event_id VARCHAR(100) NOT NULL, -- idempotent event key
payload JSONB NOT NULL,
status VARCHAR(20) DEFAULT 'pending', -- pending, delivered, failed, retrying
attempt_count SMALLINT DEFAULT 0,
next_retry_at TIMESTAMPTZ,
created_at TIMESTAMPTZ DEFAULT NOW(),
delivered_at TIMESTAMPTZ,
-- HTTP details of last attempt
last_http_status SMALLINT,
last_response_body TEXT,
last_request_ms INTEGER,
last_error_message TEXT
);
CREATE TABLE webhook_delivery_attempts (
id BIGSERIAL PRIMARY KEY,
delivery_id BIGINT REFERENCES webhook_deliveries(id),
attempt_num SMALLINT NOT NULL,
attempted_at TIMESTAMPTZ DEFAULT NOW(),
http_status SMALLINT,
request_ms INTEGER,
request_body TEXT,
response_body TEXT,
error TEXT
);
CREATE INDEX ON webhook_deliveries (endpoint_id, created_at DESC);
CREATE INDEX ON webhook_deliveries (status, next_retry_at) WHERE status = 'retrying';
CREATE INDEX ON webhook_deliveries (event_id, endpoint_id) UNIQUE;
Delivery Service
class WebhookDeliveryService
{
public function dispatch(string $eventType, string $eventId, array $payload): void
{
// Find active endpoints subscribed to this event
$endpoints = $this->endpointRepo->findActiveForEvent($eventType);
foreach ($endpoints as $endpoint) {
// Idempotency: do not duplicate if a record already exists for this event
$delivery = $this->deliveryRepo->findOrCreate(
$endpoint->id,
$eventId,
[
'event_type' => $eventType,
'payload' => $payload,
'status' => 'pending',
]
);
// Queue for async sending
dispatch(new DeliverWebhookJob($delivery->id));
}
}
}
class DeliverWebhookJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public int $tries = 1; // retry logic is managed manually
public int $timeout = 30;
public function handle(WebhookDeliveryService $service): void
{
$delivery = WebhookDelivery::with('endpoint')->find($this->deliveryId);
if (!$delivery || $delivery->status === 'delivered') return;
$endpoint = $delivery->endpoint;
$attempt = $delivery->attempt_count + 1;
$body = json_encode([
'id' => $delivery->event_id,
'type' => $delivery->event_type,
'created_at' => $delivery->created_at->toIso8601String(),
'data' => $delivery->payload,
]);
// HMAC signature
$signature = 'sha256=' . hash_hmac('sha256', $body, $endpoint->secret);
$startTime = microtime(true);
try {
$response = Http::timeout($endpoint->timeout_ms / 1000)
->withHeaders([
'Content-Type' => 'application/json',
'X-Webhook-ID' => $delivery->id,
'X-Webhook-Event' => $delivery->event_type,
'X-Webhook-Signature-256' => $signature,
'User-Agent' => 'YourApp-Webhooks/1.0',
])
->post($endpoint->url, json_decode($body, true));
$elapsed = (int)((microtime(true) - $startTime) * 1000);
$this->recordAttempt($delivery, $attempt, $response->status(), $body, $response->body(), $elapsed);
if ($response->successful()) {
$delivery->update([
'status' => 'delivered',
'delivered_at' => now(),
'last_http_status' => $response->status(),
'last_request_ms' => $elapsed,
'attempt_count' => $attempt,
]);
} else {
$this->scheduleRetry($delivery, $attempt, $endpoint, "HTTP {$response->status()}");
}
} catch (\Exception $e) {
$elapsed = (int)((microtime(true) - $startTime) * 1000);
$this->recordAttempt($delivery, $attempt, null, $body, null, $elapsed, $e->getMessage());
$this->scheduleRetry($delivery, $attempt, $endpoint, $e->getMessage());
}
}
private function scheduleRetry(WebhookDelivery $delivery, int $attempt,
WebhookEndpoint $endpoint, string $error): void
{
if ($attempt >= $endpoint->max_retries) {
$delivery->update(['status' => 'failed', 'last_error_message' => $error]);
return;
}
// Exponential backoff: 5s, 25s, 125s, 625s, 3125s
$delaySeconds = 5 ** $attempt;
$nextRetryAt = now()->addSeconds($delaySeconds);
$delivery->update([
'status' => 'retrying',
'attempt_count' => $attempt,
'next_retry_at' => $nextRetryAt,
'last_error_message' => $error,
]);
dispatch(new DeliverWebhookJob($delivery->id))->delay($nextRetryAt);
}
}
Admin Dashboard API
// Get list of endpoints with aggregated stats
public function endpoints(Request $request): JsonResponse
{
$endpoints = WebhookEndpoint::withCount([
'deliveries as pending_count' => fn($q) => $q->where('status', 'pending'),
'deliveries as failed_count' => fn($q) => $q->where('status', 'failed'),
'deliveries as delivered_count' => fn($q) => $q->where('status', 'delivered'),
])
->orderByDesc('created_at')
->paginate(20);
return response()->json($endpoints);
}
// Detailed delivery log with filtering
public function deliveries(Request $request, int $endpointId): JsonResponse
{
$deliveries = WebhookDelivery::where('endpoint_id', $endpointId)
->when($request->status, fn($q) => $q->where('status', $request->status))
->when($request->event_type, fn($q) => $q->where('event_type', $request->event_type))
->with('attempts')
->orderByDesc('created_at')
->paginate(50);
return response()->json($deliveries);
}
// Manual retry of a specific delivery
public function retry(int $deliveryId): JsonResponse
{
$delivery = WebhookDelivery::findOrFail($deliveryId);
$delivery->update(['status' => 'pending', 'next_retry_at' => null]);
dispatch(new DeliverWebhookJob($deliveryId));
return response()->json(['queued' => true]);
}
// Test webhook (ping)
public function ping(int $endpointId): JsonResponse
{
$endpoint = WebhookEndpoint::findOrFail($endpointId);
$this->webhookService->dispatch('webhook.ping', uniqid('ping_'), [
'message' => 'Test webhook from dashboard',
'timestamp' => now()->toIso8601String(),
]);
return response()->json(['sent' => true]);
}
Signature Verification on the Recipient Side
// Node.js — recipient verifies HMAC signature
const crypto = require('crypto');
function verifyWebhookSignature(rawBody, signature, secret) {
const expected = 'sha256=' + crypto
.createHmac('sha256', secret)
.update(rawBody, 'utf8')
.digest('hex');
// Timing-safe comparison — protection against timing attacks
return crypto.timingSafeEqual(
Buffer.from(signature),
Buffer.from(expected)
);
}
app.post('/webhooks/yourapp', express.raw({type: 'application/json'}), (req, res) => {
const signature = req.headers['x-webhook-signature-256'];
if (!verifyWebhookSignature(req.body, signature, process.env.WEBHOOK_SECRET)) {
return res.status(401).send('Invalid signature');
}
const event = JSON.parse(req.body);
// Respond 200 immediately, process asynchronously
res.status(200).send('OK');
processEventAsync(event);
});
Timeline
Day 1 — DB schema, base DeliveryService with HMAC signing, Job with retry logic.
Day 2 — REST API for Admin UI: CRUD endpoints, filtered delivery log, manual retry.
Day 3 — Frontend Admin UI (endpoints table, delivery log with drill-down to request/response body), test ping, monitoring failed/pending counts.
Development Stages
| Stage | Duration | Result |
|---|---|---|
| Analysis and design | 2–3 days | Technical specification for DB schema and API |
| Backend: delivery and API | 5–7 days | DeliveryService, Jobs, REST API |
| Frontend: Admin UI | 4–6 days | Management and monitoring interface |
| Testing and deployment | 2–3 days | Staging + production, team training |
What's Included
- DB schema with migrations and indexes
- Delivery service with HMAC signing and exponential backoff
- REST API for managing subscriptions and viewing logs
- Admin UI (React/Vue) with filtering and drill-down
- Monitoring and alerts when error threshold is exceeded
- API documentation (Swagger/OpenAPI)
- Deployment to your server or cloud
Results and Guarantees
Our experience: over 5 years in microservice integration, 50+ successful webhook projects. We guarantee stable operation under high load. Reduces error search time by 40% and saves up to 30% support budget.
If you want full control over your webhooks — order a dashboard development. Contact us to discuss your project. Get a consultation and timeline estimate.







