Webhook
Integrations › Webhook
Webhook / API

Webhook Integration

Send ad leads to any URL endpoint as custom JSON or query parameters -- with configurable HTTP methods, authentication, and payload templates for maximum flexibility.

Available Integrations

Connect Webhook with 4 lead sources

Start Free Trial No credit card required · 14-day free trial
Trusted by
1,000+ businesses
Leads synced
2M+
Integrations
37+
Free trial
14 days, no card

How It Works

1
Connect Your Ad Account
Link your Facebook, Google, LinkedIn, or TikTok ad account to LeadSync in one click.
2
Choose Webhook
Select Webhook as your destination and authenticate your account.
3
Map Your Fields
Match your lead form fields to Webhook and start syncing leads instantly.

Send Leads to Any URL Endpoint

The Webhook destination is the universal escape hatch -- if a system you use is not one of LeadSync's native integrations, you can almost certainly hit it via webhook. Configure a destination URL, pick the HTTP method (POST, PUT, PATCH, GET, or DELETE), define the payload structure, and LeadSync will deliver each Facebook, Google, LinkedIn, or TikTok lead to that endpoint within seconds of form submission.

Common targets: internal company APIs that accept lead data, niche CRMs without a dedicated LeadSync integration, low-code automation platforms (n8n, Pipedream, custom Lambda functions), Slack incoming webhooks (when you want raw control over the payload), Discord channels, custom logging endpoints. If it accepts an HTTP request, you can route LeadSync leads to it.

Authentication: Bearer, Basic, or API Key

The webhook destination supports three standard authentication schemes: Bearer token (Authorization: Bearer ... header -- the modern OAuth standard), Basic auth (Authorization: Basic base64(user:pass) -- common for legacy APIs), and API key in header (X-API-Key: ... or any custom header name your endpoint expects).

For more complex auth flows (HMAC signatures, mutual TLS, OAuth client credentials), the recommended pattern is to put a thin proxy in front of your real endpoint -- a Cloudflare Worker, a small AWS Lambda, or a single-function Vercel route -- that handles the complex auth and forwards a clean request to your final destination.

Custom Payload Templates with Placeholders

The webhook payload is a template you define -- write the exact JSON (or query-string) structure your endpoint expects, with placeholder tags that LeadSync substitutes with the lead form values. This means you can match any API's expected schema without writing a transformation layer in between.

Example: a custom CRM expects a flat JSON like {"contact": {"email": "...", "first_name": "..."}, "source": "facebook"} -- write that as your payload template with placeholders for email and first_name, and every lead arrives at the CRM in exactly the right shape.

Frequently Asked Questions

When the destination system is not one of LeadSync's native integrations -- internal company APIs, niche CRMs, low-code platforms (n8n, Pipedream, custom Lambdas), Slack incoming webhooks with custom payloads. If a dedicated integration exists for your destination, prefer it for the better field mapping and error handling.
POST, PUT, PATCH, GET, and DELETE. POST is the most common for creating records; PUT or PATCH for upsert patterns; GET for systems that accept lead data via query parameters.
Three built-in schemes: Bearer token (Authorization: Bearer header), Basic auth (Authorization: Basic header with base64-encoded user:pass), and API key in header (any custom header name like X-API-Key). For more complex auth like HMAC signing, put a thin proxy in front of your real endpoint.
You define it. Write the exact JSON structure your endpoint expects, with placeholder tags that LeadSync substitutes with each lead's values. This lets you match any API schema without writing a separate transformation layer.
Yes -- send leads to a Zapier or Make webhook trigger URL and the rest of your automation runs from there. That said, the dedicated LeadSync integrations for Mailchimp, HubSpot, and similar tools usually have better field mapping and faster delivery than going through Zapier as middleware, so prefer them when available.
LeadSync logs the error response (status code plus body) so you can diagnose. The lead is not retried automatically -- if your endpoint was temporarily down, you can manually re-process the lead from the LeadSync admin once your endpoint is back up.
Yes. The webhook destination is source-agnostic -- it works with lead forms from Facebook, Instagram, Google Ads lead form extensions, LinkedIn Lead Gen Forms, and TikTok Lead Generation. Each ad source becomes its own connection so you can route different platforms to different endpoints.
Not by default. If your endpoint requires a signed payload, the cleanest pattern is to add a Bearer token or API key in the auth configuration -- that gives your endpoint a way to verify the request is from LeadSync without per-payload HMAC. For HMAC-signed delivery specifically, use a thin proxy in front of your real endpoint that signs requests before forwarding.
LeadSync waits up to 30 seconds for your endpoint to respond before timing out and logging the failure. This is generous for most APIs but means you should not put long-running synchronous work behind your webhook -- accept the lead, return 200 OK quickly, and process asynchronously if needed.
Yes. Each LeadSync connection points at one endpoint, but you can create multiple connections for the same lead source -- one per destination URL -- and they will all fire in parallel for each new lead. Useful when you need to mirror leads to multiple internal systems or split delivery between primary and backup endpoints.

Start Syncing Leads to Webhook

Set up your Webhook integration in under 60 seconds. Free 14-day trial, no credit card required.

Start Your Free Trial
No credit card required • Set up in 60 seconds • Cancel anytime