Guides
Webhooks
Webhooks let you fan out accepted lead events into internal APIs, enrichment pipelines, Slack notifications, or bespoke routing services.
Set one up
A webhook belongs to a form. Turn it on in the form's notification settings, or have an agent call set_form_notifications (routing scope) with a public https:// URL and any headers your endpoint needs. For a payload with a fixed shape sent for every form, use lead forwarding instead.
Payload
1DB POSTs this JSON for each new lead. fields holds the lead's fields as stored, and timestamp is when that attempt was sent.
lead-webhook.json
{
"event": "lead.created",
"timestamp": "2026-03-11T12:34:57.000Z",
"data": {
"leadId": "...",
"formId": "...",
"formName": "Contact",
"isDuplicate": false,
"fields": { "email": "jane@example.com", "name": "Jane Doe", "company": "Acme Inc" },
"metadata": { "ip": "...", "userAgent": "...", "createdAt": 1773232496000 }
}
}Good practice
- Answer quickly with a
2xxand move longer work to a background job. - If your endpoint can't be reached, takes longer than 10 seconds, or answers
5xx,408or429, 1DB tries again, up to 5 attempts over about 3 minutes (a429'sRetry-Aftercan stretch one wait to 15 minutes). Any other answer is final, and redirects aren't followed. Each delivery is logged on the lead's activity as sent or failed, so check there if one goes missing. - Delivery is at least once: a retry after a timeout can send a lead your endpoint already took. Every request carries the lead's ID in an
Idempotency-Keyheader to deduplicate on. - Key your records on
leadIdso a replay never creates a second record.
Core concepts
Review how forms, leads, and delivery fit together.
Lead forwarding
Send leads to an API, paced and retried when it's down.