When to Use Webhooks
Use webhooks when your system needs to know what happened after KarFlows accepted a request:- A Unified message was sent, failed, or routed through fallback.
- An OTP was sent, verified, expired, or failed.
- A message finally used SMS after WhatsApp QR or Meta failed.
Events
Payload Shape
KarFlows sends a JSON body like this:Headers
Every webhook request includes:Signature Verification
When you create a webhook, KarFlows shows the signing secret once. Store it securely. KarFlows signs:Node.js Example
Recommended Response
Return any2xx status when your application accepts the event.
id or your own data.reference and ignore duplicates.
Local Development
Webhook URLs must be publicly reachable. Localhost URLs are blocked. For development, use a public tunnel such as ngrok, Cloudflare Tunnel, or a staging domain.Dashboard Controls
In the Unified API Webhooks tab, a customer can:- Add endpoint URL and display name.
- Select events to listen for.
- Enable or disable an endpoint.
- Rotate the signing secret.
- Send a test webhook.
- Delete endpoints that are no longer used.