Skip to main content
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 the Lead-Signature header. Use it to check that the webhook came from Lead. The header’s format is t={0},v0={1}.
  • t is the timestamp in milliseconds.
  • v0 is 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 hmac portion of the signature header is base64 encoded.
To authenticate a webhook, join 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.
To prevent a replay attack, you can also compare 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

Retries & Missed Events

Lead treats a webhook as delivered when your endpoint returns a 2xx HTTP response. If your endpoint returns any other response, Lead retries every three hours. Retries stop after a 2xx response or after 24 attempts.
Lead might deliver the same event to your webhook endpoint more than once.To avoid processing the same event more than once, you can use the event’s id as an idempotency key.
To check for missed events, use the List all events API to retrieve events from the last 90 days.
A request for an event older than 90 days returns a 404.

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, and account_number.activated. You only see those statuses when you retrieve the object (such as GET /v1/wires/{wire_id} or GET /v1/ach/{ach_id}) or list events.
  • Retries stop after 24 attempts. Lead retries a failed delivery every three hours, up to 24 attempts. After that, Lead doesn’t retry the event.
  • Lead might deliver an event more than once. Use the event’s id as an idempotency key when you process it.
  • Events expire after 90 days. Reconcile before then.
For most programs, Lead recommends this pattern:
  1. Process webhooks in real time as the primary trigger for downstream logic.
  2. 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.
  3. Use the resource endpoint (GET /v1/wires/{wire_id}, GET /v1/ach/{ach_id}, GET /v1/instant_payments/{id}, etc.) when you need the authoritative current status of a single transfer.

Webhook Format

Here’s a sample Lead-Signature header, with the HMAC value in v0:
An event body looks like this:

Event Types

IncomingOutgoing
IncomingOutgoingReturn Requests