A lead address is a private web address other tools can send people to: Zapier, Make, Facebook lead ads (through Zapier or Make), Typeform, a call-answering service or your own code. Each lead lands in Customers and your Inbox, just like a website form, and sends a inquiry.received update to any connected apps. It's included from the Starter plan.
Create a lead address
- In the dashboard, open Integrations and find Receive leads from other apps.
- Click Create lead address (or New address if you already have one). The window New lead address opens.
- Fill in Where leads come from, for example “Facebook lead ads”. This name becomes the lead's source in Customers, so you can tell sources apart. If you leave it empty it's called “Another app”.
- Click Create address, then Copy. The address looks like
https://curblit.com/api/hooks/lead/<secret>, where the secret is 48 characters long.
Use one address per source. Each one shows its last result (“No leads received yet.” until the first arrives) and how many times it has been used.
Send leads to it
The other app must send a POST to the address. The body can be JSON (any shape) or a normal form post (application/x-www-form-urlencoded).
From Zapier or Make
- Start with the trigger that receives the lead, for example a new Facebook lead ad or a new Typeform entry.
- Add a Webhooks step (in Zapier, Webhooks by Zapier; in Make, the HTTP module) that sends a POST to your lead address.
- Send the data as JSON and map the person's details to keys with plain names like
name,email,phoneandmessage. Any other keys are kept as part of the message. - Run the step once. The person should appear in Customers, and the address should show “Saved a lead for …”.
From your own code
curl -X POST 'https://curblit.com/api/hooks/lead/<secret>' \
-H 'Content-Type: application/json' \
-d '{"lead_id":"zap-48213","first_name":"Maria","last_name":"Chen","email":"maria@example.com","phone":"(555) 010-0000","service":"Cut and color","notes":"Prefers Saturday mornings"}'{
"ok": true,
"duplicate": false
}How Curblit reads the fields
Curblit works out the name, email and phone on its own. You don't have to match exact key names, but plain ones work best:
- Email: a key containing “email”, or failing that any value that looks like an email address.
- Phone: a key containing phone, tel, telephone, mobile, cell, number or whatsapp with 7 to 15 digits, or failing that any phone-like value (not one labelled date, zip, budget, price and similar).
- Name:
first_nameandlast_name(orfname/lname) are joined; otherwise a key containing “name” (but not business, company, pet or project name). - Message: everything else. One leftover field is used as is; several are kept as “label: value” lines.
- Nested JSON is read up to 3 levels deep, using the innermost key name. Lists like
[{ "name": "email", "values": ["…"] }](the Facebook lead ads format) and[{ "label": "…", "value": "…" }]are read too.
Here is what Curblit makes of the curl example above:
{
"name": "Maria Chen",
"email": "maria@example.com",
"phone": "(555) 010-0000",
"message": "lead id: zap-48213\nservice: Cut and color\nnotes: Prefers Saturday mornings"
}And of a Facebook-style field list:
{
"field_data": [
{
"name": "full_name",
"values": [
"Maria Chen"
]
},
{
"name": "email",
"values": [
"maria@example.com"
]
},
{
"name": "phone_number",
"values": [
"+15550100000"
]
}
]
}{
"name": "Maria Chen",
"email": "maria@example.com",
"phone": "+15550100000",
"message": ""
}What the address answers
Every answer is JSON. The result also shows under the address in Integrations.
| Status | Body | Why |
|---|---|---|
| 200 | {"ok":true,"duplicate":false} | Saved. Integrations shows “Saved a lead for …”. |
| 200 | {"ok":true,"duplicate":true} | Curblit already had this lead, so nothing changed. Integrations shows “Received a lead it already had”. |
| 400 | {"error":"Send JSON (or a form post) with at least a name, an email or a phone number."} | The body isn't valid JSON or a form post. |
| 402 | {"error":"This address is paused."} | Your plan no longer includes receiving leads. The lead isn't saved. |
| 404 | {"error":"This address isn't active."} | The address is wrong, removed or switched off. |
| 422 | {"error":"No name, email or phone number found."} | Nothing in the body looked like a name, email or phone. |
| 429 | {"error":"Too many leads in one hour. Try again later."} | More than 240 leads to this address in an hour. |
| 500 | {"error":"Could not save the lead. Please try again."} | Something went wrong on Curblit's side. Sending it again is safe. |
Good to know
- Sending the same lead twice is safe. If the body has an
id,lead_id,leadgen_id,event_idorsubmission_id, Curblit uses it to spot repeats. Otherwise an identical body counts as the same lead. So retries from Zapier or Make never create duplicates. - Someone who writes again while their lead is still open (New, Contacted or Qualified) continues that lead and conversation instead of starting a new one.
- Size limits. Curblit reads the first 100,000 characters of the body, up to 30 fields, keys up to 60 characters and values up to 5,000 characters.
- Card numbers and Social Security numbers are removed before anything is saved. They're replaced with
[card number removed]and[SSN removed]. - The address is the password. Anyone who has it can add leads. If it leaks, Remove address and create a new one: the old one stops working straight away and the new one is different, so update the other app.
- After a downgrade addresses are kept but paused (“Your addresses are kept but paused.”). Leads sent meanwhile are not saved, and the address shows “A lead arrived but wasn't saved: receiving leads from other apps needs a paid plan.”
- Up to 10 lead addresses per business.
Don't send updates back in
Stuck? Email anchorforgedigital@gmail.com with what you tried and what you saw. Never send us the secret part of an address.