Overview
Webhooks allow you to receive real-time notifications when events occur in your RunAgent deployment. Configure webhook endpoints to integrate with your systems.Webhook Events
Execution Events
Event | Description | Payload |
---|---|---|
agent.invoked | Agent invocation started | Request details |
agent.completed | Agent execution completed | Result and metadata |
agent.failed | Agent execution failed | Error details |
agent.timeout | Agent execution timed out | Timeout info |
Deployment Events
Event | Description | Payload |
---|---|---|
deployment.created | New deployment created | Deployment info |
deployment.updated | Deployment updated | Changes |
deployment.deleted | Deployment removed | Deletion details |
deployment.health_changed | Health status changed | Status info |
Webhook Configuration
Via API
Via Configuration
Webhook Payload
Standard Structure
Event Examples
agent.completed
agent.failed
Webhook Security
Signature Verification
Verify webhook authenticity using HMAC-SHA256:IP Whitelisting
Webhook requests come from these IPs:52.89.214.238
34.212.75.30
54.218.53.128
Webhook Implementation
Express.js Example
Django Example
Retry Policy
Failed webhook deliveries are retried with exponential backoff:- Immediate retry
- After 1 minute
- After 5 minutes
- After 30 minutes
- After 2 hours
Testing Webhooks
Webhook Testing Tool
Local Testing with ngrok
Monitoring Webhooks
List Webhook Deliveries
Webhook Metrics
Best Practices
- Respond Quickly: Return 2xx status within 3 seconds
- Process Asynchronously: Queue events for processing
- Implement Idempotency: Handle duplicate events
- Verify Signatures: Always verify webhook authenticity
- Monitor Failures: Track and alert on webhook failures
See Also
- Event Types - Complete event reference
- Security - Security best practices
- Rate Limits - Webhook rate limits