Webhooks
Integrations · Intermediate · 15 min read
Setting up webhooks to send lead data to external services
Webhooks
Difficulty: Intermediate | Time: 15 min
Webhooks allow you to automatically send lead data to external services in real-time. When a new lead is captured, LeadLocator can send the data to a URL you specify — enabling real-time CRM updates, custom notifications, and data syncing with other tools.
Setting Up a Webhook
- Go to Integrations in the sidebar
- Click Add Webhook
- Enter your webhook URL
- Select which events to trigger the webhook
- Save your webhook
Webhook Payload Each webhook sends a JSON payload with lead data:
{
"event": "lead.created",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"id": "lead-123",
"location": "London, UK",
"pageUrl": "/pricing",
"referrer": "google.com",
"websiteId": "site-456"
}
}
Testing Webhooks Use services like webhook.site or RequestBin to test your webhook configuration before connecting to production systems.
Troubleshooting
- Not receiving data? Check your endpoint is publicly accessible
- Authentication errors? Add required headers in webhook settings
- Timeout issues? Ensure your endpoint responds within 30 seconds
Security
- Use HTTPS endpoints only
- Validate the webhook signature (when available)
- Keep your webhook URLs private