/v1/leadsCreate a lead
Provide at least one of customer_name, email, or phone. If from_address, to_address, home_size AND email are all present, an instant estimate is computed and returned. A lead is always created.
Pilot path: /v1-leads
Parameters
customer_namestringbodyCustomer full name (or use `name`).
emailstringbodyRequired for instant estimate.
phonestringbodyE.164 preferred.
from_addressstringbodyOrigin street address.
to_addressstringbodyDestination street address.
home_sizestringbodye.g. "2 bedroom".
move_datedatebodyISO 8601 date.
special_itemsstring[]bodyPiano, safe, gym, etc.
sourcestringbodyYour channel tag, e.g. "website".
Idempotency-KeystringheaderSafe retries.
Request
curl -X POST https://dkieategdogjcrtqhkbv.supabase.co/functions/v1/v1-leads \
-H "Authorization: Bearer mbk_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7f3c…" \
-d '{
"customer_name": "Jane Doe",
"email": "jane@example.com",
"phone": "+15555550123",
"from_address": "123 Ocean Dr, Miami, FL",
"to_address": "55 Peachtree St, Atlanta, GA",
"home_size": "2 bedroom",
"move_date": "2026-08-15"
}'Response · 200
{
"lead_id": "8b2f4d6a-…",
"status": "new",
"estimate": { "min": 1840, "max": 2310, "currency": "usd" }
}