What are Webhooks?
Webhooks are HTTP callbacks that notify your system when events occur on the Leavo platform.Webhook Types
Inbound
Receive notifications about events in your Leavo account (new leads, status changes, etc.)
Outbound
Receive AI response callbacks when using debounce mode
Supported Events
| Event | Description |
|---|---|
lead.created | New lead created |
lead.updated | Lead data updated |
lead.deleted | Lead deleted |
lead.status_changed | Lead status changed |
message.received | New message received |
message.sent | Message sent |
ai.response | AI processing completed |
Webhook Payload
Best Practices
1
Respond Quickly
Return HTTP 200 as fast as possible. Process in background.
2
Handle Duplicates
Implement idempotency - the same event may be sent multiple times.
3
Verify Origin
Validate that the request actually came from Leavo.
4
Log Everything
Keep logs of all received events for debugging.