Overview
Receive real-time notifications when important events occur in your ATHENA account.
How Webhooks Work
1. Event occurs (e.g., bias detected)
2. ATHENA sends HTTPS POST to your endpoint
3. Your server processes the event
4. Respond with 2xx status codeQuick Setup
1. Create a Webhook
curl -X POST https://api.athenatrust.ai/v1/webhooks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-app.com/athena-webhook",
"events": ["bias.detected", "trust.miscalibrated"]
}'2. Save the Secret
3. Handle Events
Webhook Payload
All webhooks follow this format:
Available Events
trust.miscalibrated
User shows automation bias or algorithm aversion
Calibration analysis
bias.detected
Demographic bias detected
Bias detection
risk_user.identified
User flagged as high-risk
Trust scoring
threshold.breached
Custom threshold exceeded
Monitoring
audit.required
Regulatory audit triggered
Compliance check
compliance.report_ready
Export completed
Report generation
Security
All webhooks are signed using HMAC-SHA256. Always verify signatures before processing events.
Reliability
Retries
5 attempts with exponential backoff
Timeout
30 seconds per request
Ordering
Events delivered in order (best effort)
Idempotency
Use idempotency_key to dedupe
Best Practices
Respond quickly — Return 2xx within 30 seconds
Process async — Queue events for background processing
Verify signatures — Prevent spoofed events
Handle duplicates — Events may be delivered multiple times
Monitor delivery — Check webhook dashboard for failures
Next: Event Types
Last updated