v1.0 • Lead Management
Learn how to set up your first webhook in just a few minutes.
Set up an HTTP endpoint in your application to receive webhook notifications.
// Example Express.js endpoint
app.post('/webhook/pollybot', (req, res) => {
const payload = req.body;
// Process the webhook data
if (payload.event === 'LEAD_CREATED') {
const lead = payload.data;
// Handle new lead...
}
res.status(200).json({ received: true });
});Add your webhook URL in your chatbot settings.
Verify webhooks are working by creating a test lead.
http://localhost:3000/api/test-webhook
Learn how to verify webhook signatures and secure your endpoint.
Complete API documentation for webhook management.
Use the cURL commands in the examples to test your webhook integration.
Implementation examples in various programming languages.