A webhook is an automatic notification mechanism that allows a server to send data in real-time to an external URL when a specific event occurs.
What is a webhook?
A webhook is a "push" communication mechanism between two systems. Unlike a classic REST API where the client must regularly poll the server, a webhook allows the server to automatically notify your application when an event occurs.
How does a webhook work?
- Configuration: You provide a callback URL to the service (e.g.
https://mysite.com/webhooks/audit-complete) - Event: When the event occurs (audit completed, report generated), the service sends an HTTP POST request to your URL
- Processing: Your server receives the data and processes it (database update, notification, etc.)
Webhook advantages
- Real-time: Instant notification, no polling delay
- Efficiency: Fewer unnecessary requests to the API
- Automation: Automatic workflow triggering
Webhooks and AILabsAudit
AILabsAudit can notify your systems via webhook when an audit is completed, a report is generated or scores change significantly. Combine webhooks with the REST API to create powerful and reactive integrations.