Webhook Integration
Vellum supports real-time monitoring of platform events through Webhook integration. This allows organizations to stream event data to external systems for monitoring, alerting, and custom integrations.
Configuration
To set up Webhook integration:
- Navigate to your organization settings page in Vellum
- Scroll down to the “Monitoring Integration” section
- Click on “Webhook Integration” or the “Edit” button if it’s already configured
- Configure the integration with your desired settings
Authentication
Webhook integration supports two authentication methods to ensure your data is securely transmitted:
- API Key Header: Send an API key in a custom header with each webhook request
- Bearer Token: Use a bearer token for authentication
For additional security, you can also implement HMAC Authentication to verify that webhook requests are genuinely from Vellum.
Supported Events
You can configure which events are sent to your webhook endpoint. The following events are available:
Event Schema
Webhook events follow a consistent schema that includes essential information about the event:
Workflow Execution Events
Workflow Execution Initiated
Workflow Execution Fulfilled
Workflow Execution Rejected
Workflow Usage Calculation Events
Parent Context
The parent
field provides context about what triggered the event, which can include:
Use Cases
The Webhook integration enables several key monitoring and integration capabilities:
- Real-time Monitoring: Track workflow executions as they happen
- Custom Alerting: Build custom alerting systems based on workflow failures or performance metrics
- Cost Tracking: Monitor resource consumption and costs
- Integration with External Systems: Connect Vellum events to your existing monitoring infrastructure
- Audit Logging: Maintain a record of all executions for compliance and debugging
- Custom Analytics: Build custom dashboards and reports using your Vellum data
Best Practices
When setting up your Webhook integration:
- Start with Critical Events: Begin by monitoring the most important events like execution failures
- Implement Proper Error Handling: Ensure your webhook endpoint can handle occasional failures or retries
- Use HMAC Authentication: For production systems, implement HMAC verification to ensure webhook authenticity
- Monitor Webhook Performance: Ensure your webhook endpoint can handle the volume of events without introducing latency
- Implement Idempotency: Design your webhook handler to be idempotent in case of duplicate events