Skip to main content
Webhooks notify your application whenever a resource changes status. Instead of polling the API, you receive an HTTP POST request to your endpoint with the updated data.

Setting up webhooks

To configure webhooks, go to Developers > Webhooks in the Dashboard and add your endpoint URL. You can subscribe to specific event types or receive all events.
You must be a project admin or owner to create webhooks.

Event structure

Every webhook event follows a consistent structure with three top-level fields:

Available events

Off-ramp payloads carry bankAccountId instead of customerId at the top level of data.
When a deactivated customer is reactivated, you receive the event for the status they had before, such as customer.approved. The same event can arrive more than once, so treat it as the customer’s current status rather than as a transition.
In customer.tos.pending, tosLink is the acceptance page and stops working at expiresAt. documents lists every set of terms the customer still has to accept: url points to the terms and graceUntil is that document’s deadline, or null when it has none. If the link expires, generate a new one with Create TOS acceptance link.
The payload’s type is the transaction type the request targets (ONRAMP, OFFRAMP, or TRANSFER). It’s null for requests created before October 28, 2026.
An account that becomes INACTIVE doesn’t send an event. Read its status with Read all accounts.
Endpoints subscribed to the deprecated customer.temporary_rejection or bank_account.* event types still receive them, with the same payload as customer.rfi and destination.*. Endpoints that receive all events get only the current types. Subscribe to the current types instead.

Payload examples

Verifying webhook signatures

Each webhook request includes three headers for signature verification: To verify a webhook signature, you construct the signed content, compute the expected signature, and compare it with the header value. The signed content is created by concatenating the webhook-id, webhook-timestamp, and request body, separated by dots:
The signature is computed as a HMAC-SHA256 hash of the signed content using your webhook secret (base64-decoded) as the key, then base64-encoded.
Your webhook signing secret starts with whsec_. You must strip this prefix and base64-decode the remainder before using it as the HMAC key.
When you rotate your signing secret, Lumx continues signing messages with both the old and new secrets for 24 hours. This means the webhook-signature header may contain multiple signatures (e.g., v1,<old> v1,<new>). Your verification code should accept any valid signature from the list, which the examples below already handle.

Retries

If your endpoint does not return a 2xx response, Lumx retries the delivery with exponential backoff: After all retry attempts are exhausted, Lumx marks the message as failed. You can manually retry failed messages from the Dashboard.
Use the webhook-id header to deduplicate events in case your endpoint receives the same event more than once.

IP allowlisting

If your infrastructure requires allowlisting specific IPs, add the following addresses. These IPs are shared across both sandbox and production environments:

Basic authentication

If your endpoint requires HTTP Basic authentication, include the credentials directly in the endpoint URL:
Lumx extracts the credentials and sends them in the Authorization header on every webhook request: