Receive real-time events from CleverSearch in your own systems.
Subscribe to the events that match your workflow.
All webhook payloads are delivered as JSON.
{
"id": "evt_123",
"type": "analysis.completed",
"created_at": "2026-02-22T10:00:00Z",
"data": {
"analysis_id": "analysis_123",
"url": "https://example.com"
}
}Validate every webhook to ensure authenticity.
import crypto from "crypto";
export function verifyWebhook(body: string, signature: string, secret: string) {
const digest = crypto
.createHmac("sha256", secret)
.update(body, "utf8")
.digest("hex");
return crypto.timingSafeEqual(
Buffer.from(signature, "hex"),
Buffer.from(digest, "hex")
);
}Reliable webhook ingestion keeps automations accurate and timely.
Phase 1: Integration
Implement auth, request validation, and core endpoint flow.
Output: Stable API client with retries and typed payloads.
Phase 2: Automation
Add async handling and webhook-driven workflows.
Output: Background jobs connected to reliable event processing.
Phase 3: Hardening
Improve observability, rate-limit handling, and security.
Output: Production-ready monitoring and incident runbooks.
Successful Request Rate
>= 99% for non-4xx requests
Indicates resilient client logic and error handling.
Webhook Processing Delay
< 60 seconds median end-to-end
Keeps downstream automation timely and useful.
Auth Error Frequency
< 1% of total calls
Confirms credential management is stable.