Developers
Send leads into uLeads with one HTTP request, and get told when contacts change and deals are won.
Send leads in: the capture endpoint
Every account has a capture key. Find it on the Websites page. POST JSON or a normal form to it from any site or server. No other key is needed, so only send what a website form would send.
curl -X POST https://uleads.ai/api/capture/YOUR_CAPTURE_KEY \
-H "Content-Type: application/json" \
-d '{"name":"Maria Lopez","email":"maria@example.com","phone":"555 014 2290",
"message":"Quote for a kitchen remodel","budget":"10-15k","_source":"Partner site"}'- Recognised fields:
name(orfirst_nameandlast_name),email,phone,company,message. Anything else is saved on the contact as an extra field. - An email or a phone number is required. Repeat senders are matched to the contact you already have.
- Optional:
_source(label shown on the contact),_page(the page it came from),_redirect(where to send a browser after a normal form post). - Replies with
{"ok":true}, or an error with status 404 (unknown key), 422 (missing email and phone) or 429 (too many in an hour). - New people get a deal in the first stage of the main pipeline, the owner gets an email, and new lead automations start.
Get events out: webhooks
The account owner adds webhook addresses in Settings → Webhooks (up to 5) and picks events:
| Event | Sent when |
|---|---|
contact.created | A contact is added by a form, booking, text, import, another app or by hand. |
contact.updated | A contact's name, email, phone, company, tags, custom fields or unsubscribe status changes. |
deal.won | A deal moves into, or is created in, a stage marked Won. |
Events are sent as a JSON POST, usually within 5 minutes. A reply other than 2xx is retried with growing gaps, up to 6 tries. The same event can arrive twice, so use id to ignore repeats. Addresses must be public https:// URLs.
{
"id": "evt_1042",
"event": "deal.won",
"created_at": "2026-12-05T15:04:05Z",
"business": "Lopez Plumbing",
"deal": { "id": "…", "title": "Kitchen remodel", "value": 3800, "stage": "Won", "pipeline": "Sales", "closed_at": "…" },
"contact": { "id": "…", "name": "Maria Lopez", "email": "maria@example.com", "phone": "…", "company": null,
"tags": ["kitchen"], "source": "Website form (example.com)", "fields": {}, "created_at": "…",
"unsubscribed": false, "url": "https://uleads.ai/app/contacts/…" }
}Check the signature
Each request has X-uLeads-Event, X-uLeads-Delivery and X-uLeads-Signature headers. The signature is an HMAC-SHA256 of <t>.<raw body> using the webhook's signing secret, shown under it in Settings.
import { createHmac, timingSafeEqual } from "node:crypto";
// header = req.headers["x-uleads-signature"], e.g. "t=1764947045,v1=5d1c…"
export function verify(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
if (Math.abs(Date.now() / 1000 - Number(t)) > 600) return false; // older than 10 minutes
const want = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return want.length === v1.length && timingSafeEqual(Buffer.from(want), Buffer.from(v1));
}Without code, you can also send events to Zapier, Make or n8n by pasting their webhook address. For per-automation hooks, add a Webhook step to any automation.
For U-Suite apps
uBuilder forms, uCals bookings and uCards contact exchanges reach uLeads through a private bridge shared by the U-Suite apps. Leads go to the uLeads account whose owner has the same email as the account in the other app, or to a capture key. event is lead, booking or cancelled.
POST https://uleads.ai/api/bridge
X-Bridge-Secret: <shared U-Suite secret>
Content-Type: application/json
{ "app": "uCards", "event": "lead", "owner_email": "owner@business.com",
"name": "Dan Okafor", "email": "dan@example.com", "phone": "…",
"message": "Swapped contacts at the trade show", "page": "ucards.ai/lopez", "fields": { "met_at": "Trade show" } }Apps such as ureviews and umails can follow contacts and won deals with the webhooks above. The bridge secret is never given to customers.
Try uLeads free for 14 days. No card needed.
Start free