DAL’s webhook system allows you to receive real-time notifications about important events in your compliance monitoring workflow. This guide will help you set up and integrate with our webhook system.

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 its events 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:
  • EntityStatusUpdate
  • EntityMatchesUpdate
  • MonitoredEntityUpdate
  • KycStatusUpdate
  • KycSignatureUpdate
  • KycSubmissionUpdate
  • IntlVerificationUpdate
  • TransactionUpdate
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 with POST /webhooks, or from the dashboard under Developer Settings. You can send:
  • url: The HTTPS endpoint where you want to receive webhooks
  • events (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 the x-api-key header of every webhook request (see API Key Header)
  • headerName (optional): The header name to send the key in, if your endpoint expects something other than x-api-key (for example Authorization or x-gateway-key)
DAL generates the shared secret used for HMAC signature verification and returns it as 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 in data.challenge. Your endpoint must:
  1. Receive the handshake event
  2. Verify the HMAC signature (see Security section)
  3. Return the challenge string in the response
Handshake Request Format:
Handshake Response Format: Respond with HTTP 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
This is the normal operating state for a healthy webhook integration.

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
When Paused Status is Automatically Set?:
  1. Handshake Failures: After 3 consecutive handshake failures, DAL automatically pauses your webhook to prevent further failed attempts
  2. Delivery Failures: When an event fails all 5 delivery attempts, DAL automatically pauses your webhook and emails your team
When your webhook is paused, events are not queued. Once the status returns to 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 with PATCH /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 /webhooks also sets it to Active

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
When Webhook is Paused:
  • 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
When Webhook is Disabled:
  • 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
Using the API:
If your webhook is automatically paused, DAL administrators are notified, and they can help troubleshoot the issue with your endpoint.

Security

HMAC Signature Verification

All webhook requests include an HMAC signature in the x-signature header. You must verify this signature to ensure the request came from DAL. Signature Generation:
Example Implementation (Node.js):
Example Implementation (Python):

API Key Header (Optional)

If your endpoint sits behind a gateway or firewall that requires an API key, set a webhook API key in headerValue 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> alongside x-signature.
  • If you don’t, no x-api-key header is sent and requests are unchanged.
  • If your gateway expects the key under a different header, set that header name in headerName (for example x-gateway-key). DAL then sends the key in that header instead of x-api-key. The examples below use x-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.
The API key confirms that the caller knows your key, but it doesn’t protect the request body. Keep verifying the x-signature HMAC as well. Example (Node.js):
If your endpoint rejects a handshake because the API key is missing or wrong, the handshake fails. After 3 consecutive failures your webhook is paused, so make sure the key DAL holds matches the one your endpoint expects. To change or remove it, use PATCH /webhooks/{webhookId}.

Testing Your Integration

1. Test Webhook Endpoint

Use the integration test endpoint to verify your webhook is working:
This will trigger an 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:
  1. Receives the handshake
  2. Verifies the signature
  3. 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

  1. Invalid Signature: Ensure you’re using the correct shared secret and computing the HMAC signature properly.
  2. Handshake Failure: Make sure your endpoint returns the exact challenge string in the handshake response.
  3. Timeout Errors: Process webhook events quickly and return a response within 5 seconds.
  4. Missing Headers: Ensure your endpoint can receive the x-signature header, and the x-api-key header if you registered a webhook API key.
  5. 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:
  1. Check the webhook test endpoint to verify connectivity
  2. Review your signature verification implementation
  3. Ensure your endpoint handles all required event types
  4. 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 name
  • x-api-key: Your API key
  • Content-Type: application/json
Request Body:
Response:

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 name
  • x-api-key: Your API key
Response:
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 normally
  • Paused - Webhook delivery is temporarily paused (events are not queued)
  • Disabled - Not returned: a disabled webhook is treated as removed
Use Cases:
  • 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 name
  • x-api-key: Your API key
  • Content-Type: application/json
Request Body:
Response:
The 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 name
  • x-api-key: Your API key
  • Content-Type: application/json
Request Body:
Returns the updated webhook, and 400 for the same reasons as POST /webhooks or if status is Paused.