Skip to main content

Webhooks

Receive instant notifications when security events occur in CastellanAI.

Built-in Integrations

For Slack and Microsoft Teams, we recommend using our built-in integrations instead of webhooks. See Slack Integration and Teams Integration.


What Are Webhooks?

Webhooks send automatic notifications to your systems when important events happen:

System TypeExamples
TicketingServiceNow, Jira, Zendesk
CommunicationSlack, Microsoft Teams
AutomationZapier, Power Automate, custom scripts
SIEMSplunk, Elastic, QRadar

Setting Up Webhooks

Step 1: Get Your Webhook URL

First, get the webhook URL from your receiving system:

SystemHow to Get URL
SlackCreate an Incoming Webhook in workspace settings
ServiceNowConfigure an inbound web service
JiraSet up a webhook listener or use Jira Automation
CustomProvide an HTTPS endpoint for POST requests

Webhook Payload

Payload Structure

CastellanAI sends JSON payloads to your webhook endpoint:

{
"event_id": "evt_123456789",
"event_type": "security_event",
"severity": "critical",
"timestamp": "2025-01-15T10:30:00Z",
"data": {
"title": "Ransomware Detected",
"description": "Suspicious file activity detected on WORKSTATION-01",
"host": "WORKSTATION-01",
"user": "john.doe",
"source_ip": "192.168.1.100",
"mitre_tactics": ["execution", "impact"]
},
"links": {
"event_url": "https://app.castellanai.com/events/evt_123456789"
}
}

Managing Webhooks

View Webhook Status

Go to Settings → Webhooks to see all configured webhooks:

StatusDescription
🟢 ActiveWorking normally
🟡 WarningRecent delivery failures (will retry)
🔴 DisabledDisabled due to repeated failures

Delivery & Retries

CastellanAI ensures reliable webhook delivery:

FeatureDescription
Delivery TimeWithin seconds of event
Retry AttemptsUp to 5 automatic retries
Retry IntervalExponential backoff (1m, 5m, 15m, 1h, 4h)
Auto-DisableAfter 5 consecutive failures
NotificationEmail sent when webhook disabled
🔄 Re-enabling a Disabled Webhook
  1. Fix the issue with your receiving endpoint
  2. Go to Settings → Webhooks
  3. Click Enable on the disabled webhook
  4. Click Test to verify it's working

Best Practices

Security Best Practices

PracticeDescription
Use HTTPSOnly HTTPS URLs accepted
Verify SignaturesValidate X-Castellan-Signature header
Whitelist IPsAllow CastellanAI IP ranges
Rotate SecretsPeriodically regenerate webhook secrets

Troubleshooting

Webhook Not Receiving Events

CheckSolution
Webhook statusVerify Active in Settings → Webhooks
Endpoint URLConfirm URL is correct and accessible
FirewallAllow connections from CastellanAI
Event filtersVerify selected events match expectations

Quick Test: Click Test to send a test notification.

📝 Webhook Setup Checklist
  • Obtain webhook URL from receiving system
  • Create webhook in CastellanAI
  • Select appropriate events
  • Test webhook delivery
  • Configure signature verification
  • Set up backup notification method
  • Monitor webhook status regularly

What's Next?

GuideDescription
API AccessEnable programmatic access
Slack IntegrationBuilt-in Slack notifications
Teams IntegrationBuilt-in Teams notifications
Need Help?

Contact support@castellanai.com with your webhook configuration details for assistance.