Overview
Webhooks are HTTP callbacks that notify your application when specific events occur in the DAL system. Instead of polling our API for updates, you can register a webhook endpoint to receive instant notifications.Available Events
The list of supported DAL webhook events is available here.Choosing Which Events You Receive
Your webhook receives only the event types in itsevents list. Set the list when you register your webhook, or change it later with PATCH /webhooks/{webhookId}. If your first webhook is registered without events, its list is empty. When you register again without events, the new webhook keeps your current subscription. Send an empty list to stop receiving all of them.
Event types you can subscribe to:
EntityStatusUpdateEntityMatchesUpdateMonitoredEntityUpdateKycStatusUpdateKycSignatureUpdateKycSubmissionUpdateIntlVerificationUpdateTransactionUpdate
Handshake and IntegrationTestUpdate events are always sent, whatever you subscribe to. The deprecated ClientStatusUpdate and ClientMatchesUpdate events follow EntityStatusUpdate and EntityMatchesUpdate.
Events you are not subscribed to are dropped, not stored. Subscribing to an event type later does not deliver the events you missed.
Setting Up Webhooks
1. Configure Your Endpoint
First, you need to set up a webhook endpoint in your application that can receive HTTP POST requests. Your endpoint should:- Accept JSON payloads
- Return HTTP 200 status for successful processing
- Handle the handshake challenge (see below)
- Process webhook events within 5 seconds
2. Register Your Webhook
Register your endpoint yourself withPOST /webhooks, or from the dashboard under Developer Settings. You can send:
url: The HTTPS endpoint where you want to receive webhooksevents(optional): The event types you want to receive (see Choosing Which Events You Receive)headerValue(optional): A key of your choosing that DAL will send in thex-api-keyheader of every webhook request (see API Key Header)headerName(optional): The header name to send the key in, if your endpoint expects something other thanx-api-key(for exampleAuthorizationorx-gateway-key)
secret in the response. It is shown only once, so store it securely.
3. Handle the Handshake
Every 3 hours, DAL sends a handshake event to verify your endpoint is working. The challenge is indata.challenge. Your endpoint must:
- Receive the handshake event
- Verify the HMAC signature (see Security section)
- Return the challenge string in the response
200 and the challenge at the top level of the body, not inside data:
Webhook Statuses
DAL tracks the status of your webhook integration to ensure reliable delivery of events. Understanding webhook statuses helps you monitor the health of your integration and troubleshoot issues.Available Statuses
Active
Status:Active
When your webhook is in Active status:
- Webhook events are being sent to your endpoint normally
- All configured events (EntityStatusUpdate, MonitoredEntityUpdate, etc.) will be delivered
- Handshake verification is passing
- Your endpoint is responding successfully to webhook requests
Paused
Status:Paused
When your webhook is in Paused status:
- Webhook events are not being sent to your endpoint
- Events are dropped, not queued, and are not sent when the status returns to
Active - Handshakes are still sent, so the webhook can recover on its own
- This status is automatically set by DAL when issues are detected
- This status indicates that handshake verification is failing or webhook delivery is consistently failing
- Handshake Failures: After 3 consecutive handshake failures, DAL automatically pauses your webhook to prevent further failed attempts
- Delivery Failures: When an event fails all 5 delivery attempts, DAL automatically pauses your webhook and emails your team
Active, events created while it was paused are not sent, so use the API to catch up on changes you missed.
Disabled
Status:Disabled
When your webhook is in Disabled status:
- Your webhook is treated as removed: it is no longer returned by the API or shown in the dashboard
- Webhook events and handshakes are not being sent to your endpoint
- This status is set manually, by you with
PATCH /webhooks/{webhookId}or by a DAL administrator - Events are not queued while disabled
Status Transitions
Webhook statuses can transition based on system behavior and administrative actions:Automatic Transitions
-
Active → Paused:
- Occurs automatically when handshake verification fails 3 consecutive times
- Occurs automatically when an event fails all 5 delivery attempts
- Events are dropped, not queued
-
Paused → Active:
- Occurs automatically when a handshake verification succeeds after being paused
- Failed handshake counter is reset to 0
- Events created while paused are not sent
Manual Transitions
You can make these withPATCH /webhooks/{webhookId}, and DAL administrators can make them too. You can’t set Paused yourself.
-
Any Status → Disabled:
- Removes your webhook and stops all delivery, including handshakes
- Events are not queued while disabled
-
Any Status → Active:
- Used to resume webhook delivery once your endpoint is fixed
- Registering your webhook again with
POST /webhooksalso sets it toActive
Understanding Status Behavior
When Webhook is Active:- All events are delivered immediately
- Each event gets up to 5 delivery attempts, starting 15 minutes apart and doubling each time
- Handshake verification runs every 3 hours to ensure endpoint health
- Events are not delivered or queued
- Failed handshake counter tracks consecutive failures
- Once handshake succeeds, status automatically returns to Active
- 3 consecutive handshake failures trigger Paused status
- The webhook is treated as removed
- No events or handshakes are delivered, and no events are queued
Monitoring Your Webhook Status
You can check your webhook status programmatically using the Get Your Webhook API endpoint, or contact your DAL administrator. They can:- View your current webhook status
- Check failed handshake counts
- Review webhook delivery logs
- Manually change your webhook status if needed
Security
HMAC Signature Verification
All webhook requests include an HMAC signature in thex-signature header. You must verify this signature to ensure the request came from DAL.
Signature Generation:
API Key Header (Optional)
If your endpoint sits behind a gateway or firewall that requires an API key, set a webhook API key inheaderValue when registering. DAL then includes it in the x-api-key header of every webhook request, including handshakes.
- If you provide a webhook API key, every request carries
x-api-key: <your-webhook-api-key>alongsidex-signature. - If you don’t, no
x-api-keyheader is sent and requests are unchanged. - If your gateway expects the key under a different header, set that header name in
headerName(for examplex-gateway-key). DAL then sends the key in that header instead ofx-api-key. The examples below usex-api-key; replace it with your header name.
The webhook API key is the key you choose for DAL to send to your endpoint. It is separate from the API key DAL issues to you for calling DAL’s APIs. Don’t reuse that one here.
x-signature HMAC as well.
Example (Node.js):
PATCH /webhooks/{webhookId}.
Testing Your Integration
1. Test Webhook Endpoint
Use the integration test endpoint to verify your webhook is working:IntegrationTestUpdate event to your registered webhook URL. It is only delivered while your webhook is Active.
2. Verify Handshake
DAL sends a handshake event every 3 hours. Make sure your endpoint:- Receives the handshake
- Verifies the signature
- Returns the correct response format
Best Practices
1. Idempotency
Webhook events may be delivered multiple times. Implement idempotency in your webhook handler to avoid processing the same event twice. Example:2. Error Handling
Always return HTTP 200 for successful processing, even if you encounter errors. Log errors internally and handle them appropriately.3. Timeout Handling
Process webhook events quickly. DAL has a 5-second timeout for webhook responses.4. Logging
Log all webhook events for debugging and audit purposes:Troubleshooting
Common Issues
- Invalid Signature: Ensure you’re using the correct shared secret and computing the HMAC signature properly.
- Handshake Failure: Make sure your endpoint returns the exact challenge string in the handshake response.
- Timeout Errors: Process webhook events quickly and return a response within 5 seconds.
-
Missing Headers: Ensure your endpoint can receive the
x-signatureheader, and thex-api-keyheader if you registered a webhook API key. -
Invalid API Key: If your endpoint checks
x-api-key, confirm that the webhook API key registered with DAL matches the one your endpoint expects.
Debug Mode
Enable debug logging in your webhook handler to troubleshoot issues:Support
If you encounter issues with webhook integration:- Check the webhook test endpoint to verify connectivity
- Review your signature verification implementation
- Ensure your endpoint handles all required event types
- Contact your DAL administrator for assistance
API Reference
Test Webhook Endpoint
POST/webhooks/test
Triggers an integration test webhook event.
Headers:
x-tenant: Your tenant namex-api-key: Your API keyContent-Type: application/json
Get Your Webhook
GET/webhooks
Retrieve your webhook, including whether it is Active or Paused. The response is empty if you have no webhook or it is Disabled, since a disabled webhook is treated as removed.
Headers:
x-tenant: Your tenant namex-api-key: Your API key
healths has one entry per day for the last 30 days, showing whether that day’s handshakes succeeded.
Possible Status Values:
Active- Webhooks are being sent normallyPaused- Webhook delivery is temporarily paused (events are not queued)Disabled- Not returned: a disabled webhook is treated as removed
- Monitor webhook integration health
- Troubleshoot webhook delivery issues
- Verify webhook status after configuration changes
Register a Webhook
POST/webhooks
Register your webhook. Each tenant has one webhook, so this replaces any existing one: DAL generates a new secret and id and sets the status to Active. If you leave events out, the new webhook keeps your current subscription.
Headers:
x-tenant: Your tenant namex-api-key: Your API keyContent-Type: application/json
secret is returned only in this response.
Returns 400 if url isn’t a valid URL, headerName isn’t a valid header name, or events contains an unknown event type or a duplicate.
Update a Webhook
PATCH/webhooks/{webhookId}
Change your webhook’s url, events, headerName, headerValue or status (Active or Disabled). Setting Disabled removes the webhook. Fields you leave out are unchanged. The events list you send replaces the current one.
Headers:
x-tenant: Your tenant namex-api-key: Your API keyContent-Type: application/json
400 for the same reasons as POST /webhooks or if status is Paused.