LeadCentre Webhook Reference
Each LeadCentre account has a webhook URL that takes leads from anything able to send an HTTP POST, such as a booking system, a quote calculator or a lead supplier's platform. This is the reference for whoever is building that connection: what to send, how it's read, the limits and what comes back.
Built In: Built into LeadCentre, with no other tool needed.
What this does
A post to your webhook URL creates a lead. You decide the field names, and an Admin on the account matches them to LeadCentre fields once, per key. There's no schema to follow beyond the formats below, so all you need is a system that can send an HTTPS POST and an Admin to create the key.
URL and keys
https://hooks.leadcentre.com/in/YOUR-ACCOUNT-ID?key=YOUR-KEY
- Each account has a key called Website form and can add more under Settings > Connections. Each key has its own secret, field matching and test state.
- Send the secret as ?key= in the URL, or in an x-api-key header. If both are present, the URL wins. Use the header where you can, because URLs end up in logs.
- A secret is shown once, when it's created or replaced. LeadCentre keeps only a hash, so copy it while it's on screen.
- Replace this URL issues a new secret, and the old one stops at once. Field matching is kept. Revoke removes any key except Website form.
- Send each lead with POST. Each client account on an agency platform has its own URL and keys.
Accepted bodies
- A JSON object: one lead.
- A JSON array of objects: one lead per object, up to 25 per post. LeadCentre reads the first 25 and skips items that aren't objects, so check the length of results.
- A form post (URL-encoded): one lead.
The format is worked out from the body, so a wrong Content-Type header won't stop a JSON or URL-encoded post. Send one of those formats. A multipart/form-data post is refused with a 415 before it's logged, so it won't show on the matching screen. Send text fields, with a link in place of any file.
Limits
- 64 KB per post.
- 120 a minute per key. Each lead in an array counts separately, so five arrays of 25 reach the limit.
- 200 fields per lead and six levels of nesting. Anything further is dropped.
How fields are named
Nested JSON is flattened into dotted names, with array items numbered from 0:
{"contact": {"phone": "07700900123"}, "answers": [{"text": "Roof"}]}
contact.phone 07700900123
answers.0.text Roof
Values are trimmed and turned into text. Null and empty values are skipped, so they won't appear on the matching screen until a post has a value for them.
Numbered names mean position. If your source sends answers as a list, answers.0.text means whatever comes first. If the order changes, values land in the wrong fields with no error, as the Google Ads guide explains. Prefer named fields where you control the payload.
Test mode
A post is test data if the URL includes test=1, or while the key is listening. Listen for test data lasts 15 minutes, or until Stop listening. Test data is logged, shows on the matching screen and never becomes a lead. That includes a real lead sent while the key is listening, as it isn't kept back for later. The response shows the result test, which lets your system tell.
Held posts
A post sent before a key has any matching is held, and shows the result awaiting_mapping. Pressing Save field matching turns held posts into leads, with their original received time. A post that was matched but had no name, phone or email (the result no_contact) is retried the same way, so matching a renamed field recovers it. Each save handles up to 200, oldest first, so save again for a longer backlog. Received posts are kept for 30 days, so save your matching within that time.
Duplicates
Match your own ID to Unique ID. A repeat returns the result duplicate and doesn't create a second lead. A Unique ID belongs to the key it came through, so two sources using the same number stay separate. Without a Unique ID, exactly the same post to the same key within 10 minutes counts as a repeat, and anything else makes a new lead.
Responses
A successful post returns one result per lead, in order:
{"ok": true, "results": ["lead", "duplicate"]}
| Status | Meaning |
|---|---|
| 200 | Received. Each result is lead, duplicate, no_contact, test or awaiting_mapping. Check them, because no_contact also returns 200. |
| 400 | Send JSON or a form post. The body was empty, broken JSON, plain text or an array with no objects. |
| 401 | Invalid webhook URL or key. It's missing, wrong, replaced or revoked, the account ID is malformed or the account is suspended. |
| 404 | Not found. The path isn't /in/YOUR-ACCOUNT-ID. |
| 413 | Body too large. Over 64 KB. |
| 415 | Multipart form data is not supported. Send JSON or a URL-encoded form (application/x-www-form-urlencoded). |
| 429 | Too many requests. Over the limit for this key, so wait and try again. |
| 500 | A lead couldn't be saved, and ok is false. Earlier items in the array may have been saved, so retry only with Unique ID matched. |
Only a 200 or a 500 leaves a record under Recent activity. Anything refused earlier never gets that far, so log the status code on your side.
What happens to mapped values
- First name and last name combine into the full name when no full name is matched.
- Emails are lowercased and postcodes uppercased.
- Estimated value takes a plain amount such as 1,250.50, with or without a currency symbol, in the account's own currency. Anything else is ignored.
- A future or unreadable Date received is ignored, and the lead takes the time it arrived. Send ISO dates such as 2026-11-04T10:30:00Z, because a UK date such as 04/11/2026 can be read as 11 April.
- Lead source defaults to the key's name, so name keys after the source.
- Tags take a comma-separated list such as Hot lead, Boiler, or a JSON list. Each goes on the lead, and a name the account doesn't have yet becomes a new tag. A lead keeps up to 20 tags of up to 30 characters each.
- If two fields are matched to the same LeadCentre field, the first with a value wins.
- A lead needs at least a name, phone or email.
How leads reach LeadCentre
Step 1
Your system sends a POST
JSON or URL-encoded, to the key's URL, with the secret in the query or a header.
Step 2
LeadCentre checks and reads it
It checks the key, rate limit and size, then flattens the body into named fields.
Step 3
The key's matching is applied
Each field fills its matched LeadCentre field. A Unique ID stops repeats.
Step 4
The lead is created
A push notification goes out, and any automations you've published start, such as the Instant Email Reply. Your system gets the result.
How to set it up
- 1
Create a key
You need the Admin role. Go to Settings > Connections. On the Webhook tab, press "Add Another Key", enter a name and press "Create". Press "Copy" straight away, as the URL is only shown once. To use the Website form key instead, press "Create Webhook URL" under it and copy the URL it shows. On an agency-managed account, the agency can switch Connections off for a client's own people.
- 2
Listen, or use test=1
Open the key and press "Listen for test data", or add &test=1 to the URL for as long as you're testing. Test mode with test=1 is useful if live data is already flowing, as it affects only your own requests, while listening treats every post to that key as test data. If the secret is in a header and the URL has no query, use ?test=1.
- 3
Send a complete sample
Post a payload with every field filled in, as null and empty values aren't shown. For example: curl -X POST "YOUR-URL&test=1" -H "Content-Type: application/json" -d '{"name":"Test Lead","email":"[email protected]","phone":"07700900123","id":"test-1"}'. The response should be {"ok":true,"results":["test"]}.
- 4
Match the fields
The fields appear under "2. Match the fields" with their latest values, and Smart Match suggests what it can. Choose a LeadCentre field for each, type a name to create a custom field, or leave it on Do not use, which also stops it being flagged again. Press "Save field matching".
- 5
Go live
Press "Stop listening", or remove test=1 from your URL. Send a real post and check the result is lead. Later, if your system starts sending new names, the key's card shows a notice about new fields to match.
Supported fields
You choose the names. Smart Match recognises the common ones below, and others can be matched by hand. Custom fields can hold anything else.
Tracking fields with these exact names are kept on the lead automatically, without being matched, unless you set them to Do not use: utm_source, utm_medium, utm_campaign, utm_id, utm_term, utm_content, gclid, gbraid, wbraid, msclkid, fbclid, fbc, fbp, meta_lead_id, campaign_name, campaign_id, ad_group_name, ad_group_id, ad_name, ad_id, form_id, landing_page_url and referrer_url. They show under Attribution details on the lead in the portal. Click IDs from a landing page's address are left out: send them as their own fields if you have consent to.
| Field sent | Usually matched to |
|---|---|
| name, full_name | Full name |
| first_name, last_name | First name, Last name |
| phone, mobile, landline | Phone (mobile or landline), Mobile, Landline |
| company | Company |
| house_number, street, district | House number, Street, District |
| town or city, county, country, postcode | Town / city, County / State / Region, Country, Postcode |
| service | Enquiry type |
| best_time_to_call, preferred_contact | Best time to call, Preferred contact |
| message | Enquiry / Message |
| estimated_value | Estimated value |
| lead_source | Lead source |
| tags | Tags |
| received_at | Date received |
| id | Unique ID (stops duplicates) |
Common problems
A test post doesn't appear on the matching screen
Check the response first. A 401 means a wrong or replaced key, a 400 means an unreadable body, and a 415 means you sent multipart. On a 200, make sure you have that key's page open, as each key has its own. Only the 25 most recent posts feed the matching screen, and empty values are skipped.
A post is held and shows "Waiting for field matching"
That's the result awaiting_mapping, meaning the key had no matching when it arrived. Press "Save field matching" within the 30 days received posts are kept, and it becomes a lead with its original received time.
I get a 200 but there's no lead
Read results. no_contact means none of your matched fields held a name, phone or email. test means the key was listening or the URL has test=1. duplicate means the Unique ID has been used before on this key.
I sent an array and some leads are missing
LeadCentre reads the first 25 objects in a post, so split larger batches into several posts. Each lead counts toward the limit of 120 a minute, so space them out.
I lost the webhook URL
A secret is shown once, and only a hash is stored. Open the key and press "Replace this URL", or "Get a URL to copy" if it has never been used. Update your system. Field matching is kept.
I need to rotate the key without losing leads
"Replace this URL" stops the old secret at once, so posts in the gap get a 401. For a clean switch, create a second key, match its fields, point your system at it, check it's working, then revoke the old key. Queue and retry on 401 from your side if you can't do that.
Questions about this connection
Where should I send posts from?
From a server. Any key in browser code is public, and the webhook is built for server-to-server posts, with no cross-origin headers for a browser to use.
What happens if I send the same Unique ID again?
The repeat returns duplicate and doesn't create a second lead. It can fill in details the first copy was missing, but it never changes one the lead already has.
How does LeadCentre know a post is genuine?
By the secret in the URL or x-api-key header, so treat the URL like a password. Signature headers from other platforms play no part, and anything in the body can be matched or set to Do not use.
Set up your Connections
Set up your LeadCentre account and add this Connection, and your next enquiry can arrive on your phone.