What Are Webhooks?
A webhook sends an HTTP request to a URL you control when a configured event occurs. It can reduce polling, but deliveries may be delayed or retried—so receivers should verify, acknowledge, and process events safely.
Common Use Cases
1. Route selected events to team tools
A receiver you operate can transform a verified event into a Slack notification, CRM update, or warehouse record. Keep destination credentials on the server and send only the fields the destination needs.
// Example payload sent from your own integration to a Slack incoming webhook
POST https://hooks.slack.com/services/YOUR/WEBHOOK/URL
{
"text": "Campaign \"Summer Sale\" reached its configured milestone."
}
2. CRM Integration
Map validated conversion events to records in your CRM. Define deduplication keys and avoid sending unnecessary personal or sensitive data.
3. Analytics Pipeline
Stream click and conversion data to your data warehouse for custom reporting.
Configure and receive a webhook
- Deploy an HTTPS endpoint that can accept the event payloads you select.
- Open the Webhooks page in Lativiq, register the endpoint, and choose from the event types available to your account.
- Save the secret when it is shown, and configure your receiver to verify the signature before using the payload.
- Return a successful response promptly; queue slower work and make processing idempotent so a retry does not apply the same event twice.
The delivery log can help diagnose unsuccessful responses. Check the available events and retry behavior in the product before relying on a particular event or delivery schedule.
Security Best Practices
Verify every delivery
Lativiq sends an X-Lativiq-Signature header in the form sha256=<lowercase hex digest>, calculated with HMAC-SHA256 over the exact JSON request body and the configured secret. Verify against the raw request bytes before parsing, compare signatures in constant time, and check the delivery timestamp to reduce replay risk. Use the delivery ID to deduplicate retries.
Real-World Example
Marketing Automation Workflow
- Click Event: Create lead in CRM
- Install Event: Send welcome email via SendGrid
- Conversion Event: Notify sales team in Slack
- 30-Day Event: Trigger retention campaign
Conclusion
Webhooks can connect configured events to systems you operate. Reliable integrations still need signature verification, retry-safe processing, delivery monitoring, and controls over the data they forward.