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

Webhook Format

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

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 the object_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}
You always get the object as it is now, even if the event arrives late or out of order.

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.
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 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 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 retrieve endpoint for the object when you need the authoritative current status of a single transfer.

Event Types

IncomingOutgoing
IncomingOutgoingReturn Requests