Lead sends webhooks to notify you about events that happen within your program. We use HTTPS to send events as a JSON payload. You can then use these events to trigger new actions in your system.
Webhook Authentication
Every webhook includes a signature in theLead-Signature header. Use it to check that the webhook came from Lead. The header’s format is t={0},v0={1}.
tis the timestamp in milliseconds.v0is an HMAC signature with SHA-256. It uses your webhook endpoint’s signing secret as the key and the request body, as string bytes, as the message.- The
hmacportion of the signature header is base64 encoded.
t, a period (.), and the request body, then calculate the HMAC of the result: base64(HMAC256(t + "." + request body)). Check that it matches v0 in the Lead-Signature header.
You must use the request body as bytes, exactly as you receive it. Do not process it first.
t, the time Lead sent the webhook, to the current time on your server. Then decide if the difference is within your tolerance.
Webhook IP Addresses
Lead sends webhooks only from these IP addresses:- Production:
3.216.219.186 - Sandbox:
34.234.237.195
Webhook Format
Here’s a sampleLead-Signature header, with the HMAC value in v0:
Getting the Object
Each V2 event tells you what happened and which object it happened to. It doesn’t include the object itself. To get the object, call its retrieve endpoint with theobject_id. You choose which API version to call, so you can move to a newer version when you’re ready. Your webhook payload doesn’t change.
For example, when you receive a wire.posted event, you can retrieve the wire with either version:
- V1:
GET /v1/wires/{wire_id} - V2:
GET /v2/wires/{id}
Retries & Missed Events
Lead treats a webhook as delivered when your endpoint returns a 2xx HTTP response. If a delivery fails, Lead retries it. The first retry is after 15 minutes, and the wait doubles after each attempt. Retries stop after a 2xx response or 3 days after the first attempt. To check for missed events, use the List all events API to retrieve events from the last 90 days.Pairing Webhooks With Reconciliation
Lead recommends webhooks for real-time status updates, but not as your only source of updates. An integration that only polls breaks more easily, and one that only uses webhooks can miss events. Pair webhooks with a periodic reconciliation job for these reasons:- Not every status sends a webhook. In the event tables, some statuses show No in the Webhook Sent column, for example
wire.created,ach.processing,ach.pending_return, andaccount_number.activated. You only see those statuses when you retrieve the object or list events. - Retries stop after 3 days. Lead retries a failed delivery for up to 3 days after the first attempt. After that, Lead doesn’t retry the event.
- Lead might deliver an event more than once. Use the event’s
idas an idempotency key when you process it. - Events expire after 90 days. Reconcile before then.
- Process webhooks in real time as the primary trigger for downstream logic.
- Run a reconciliation job, for example hourly or daily, that calls List all events, the object’s retrieve endpoint, or both, to catch anything you missed.
- Use the retrieve endpoint for the object when you need the authoritative current status of a single transfer.
Event Types
ACH Events
ACH Events
Internal Transfer Events
Internal Transfer Events
Instant Payment Events
Instant Payment Events
Incoming
Outgoing
Wire Events
Wire Events
Incoming
Outgoing
Return Requests
Account Number Events
Account Number Events
Lending Events
Lending Events
Funding Events
Funding Events
Receivable Sale Events
Receivable Sale Events

