Webhooks allow you to receive real-time notifications when data changes in Dalil AI. When an event occurs — a person is created, an opportunity is updated, a task is deleted — Dalil AI sends an HTTP POST to your specified URL with the event payload.
Endpoints
Method | Path | Description |
|---|---|---|
POST |
| Register a webhook |
GET |
| List registered webhooks |
DELETE |
| Remove a webhook |
Supported Entities
Entity | Value |
|---|---|
Company |
|
People |
|
Opportunity |
|
Task |
|
Supported Actions
Action | Value | Description |
|---|---|---|
Created |
| A record was created |
Updated |
| A record was updated |
Deleted |
| A record was deleted |
All |
| Any of the above |
Operation String Format
Webhooks subscribe using an operation string that combines entity and action with a dot:
Pattern | Matches | Example |
|---|---|---|
| Specific entity + action |
|
| All actions for an entity |
|
| Specific action across all entities |
|
| Everything |
|
You can subscribe to multiple operation patterns in a single webhook by providing an array.
Register a Webhook
Request Body
Field | Type | Required | Description |
|---|---|---|---|
| string | Yes | URL to receive POST requests when events fire |
| string[] | Yes | Array of operation patterns to subscribe to |
| string | No | Human-readable label for this webhook |
| string | No | Secret for request validation |
Example — Subscribe to new contacts
Example — Subscribe to all company changes
Example — Subscribe to all events
Response
Save the returned id — you'll need it to delete the webhook later.
List Webhooks
Parameter | Type | Default | Description |
|---|---|---|---|
| string | — | Filter conditions |
| number | 60 | Records per page |
Delete a Webhook
Webhook Payload
When an event triggers, Dalil AI sends an HTTP POST to your targetUrl with the event data in the request body. The payload includes the full record data for the affected entity.
Handle the incoming POST on your server — respond with a 2xx status code to acknowledge receipt.