Skip to main content

Custom Webhooks

Send CastellanAI security events to external systems like SIEM platforms, ticketing systems, or automation tools.

Built-in Integrations First

Most users don't need custom webhooks. Use the built-in integrations for Microsoft Teams or Slack instead.


What Are Webhooks?

Webhooks automatically push security events to other systems in real-time.


Who Should Use Webhooks?

Use CaseExample
SIEM IntegrationSend events to Splunk, QRadar, or Elastic
Ticketing AutomationCreate Jira or ServiceNow tickets automatically
Custom DashboardsFeed events to internal security dashboards
Workflow AutomationTrigger actions in Zapier or Power Automate

Setting Up a Webhook

Step 1: Navigate to Webhook Settings

  1. Log in to the CastellanAI Portal
  2. Go to Configuration → Notifications
  3. Click + Add Channel
  4. Select Custom Webhook

Webhook Payload

JSON Payload Structure

{
"event_id": "evt_123456789",
"event_type": "malware_detection",
"severity": "critical",
"timestamp": "2025-01-15T10:30:00Z",
"device": "WORKSTATION-01",
"user": "john.doe",
"description": "Ransomware detected on endpoint",
"risk_score": 95,
"mitre_tactics": ["execution", "impact"],
"source_ip": "192.168.1.100"
}

Authentication Options

API Key Authentication

Include API key in request header:

HeaderValue
AuthorizationBearer YOUR_API_KEY
X-API-KeyYOUR_API_KEY

Monitoring Webhook Status

Delivery Status

StatusMeaning
SuccessEvent delivered successfully
🔄 RetryingDelivery failed, retry in progress
FailedDelivery failed after all retries
Auto-Disable

Webhooks with more than 80% failure rate over 24 hours are automatically disabled. Fix the endpoint issue, then re-enable.


Troubleshooting

Webhook Not Receiving Events

CheckSolution
Webhook enabledToggle should be green
Event filtersVerify filters match expected events
Delivery logCheck for error messages
📝 Webhook Setup Checklist
  • Identify receiving system requirements
  • Determine authentication method
  • Create webhook in CastellanAI
  • Configure event filters
  • Test webhook delivery
  • Verify payload format
  • Monitor delivery status
  • Set up alerting for failures

What's Next?

GuideDescription
Email AlertsSet up email notifications
Microsoft TeamsBuilt-in Teams integration
SlackBuilt-in Slack integration
Need Help?

Enterprise customers: Contact your Technical Account Manager All customers: Email support@castellanai.com with integration requirements