Incoming webhooks (triggering agents)
Use incoming webhooks to start an agent’s execution flow from your application (e.g., backend, CRM). Endpoint: Each agent has a unique webhook URL.X-API-Key request header.
Outbound webhooks (agent notifications)
Configure your agents to send real-time notifications to your systems when important events occur during execution.Configuration
- Navigate to your agent’s “API & Webhooks” settings
- Add webhook endpoints for the events you want to monitor
- Configure a Secret Key for request verification
- Select which events to subscribe to
Supported events
Execution started
agent_execution_startedFired when an agent begins processingExecution ended
agent_execution_endedFired when an agent completes successfullyExecution failed
agent_execution_failedFired when an agent encounters an errorHandoff required
agent_execution_handoffFired when human intervention is neededSecurity & verification
Every webhook request includes anX-Webhook-Signature header containing an HMAC SHA-256 signature of the request body. Verify this signature using your configured Secret Key to ensure authenticity.
Webhook payloads
All webhook payloads include base execution data plus event-specific information:Base payload structure
Event-specific data
Handoff event includes handoff details:Best practices
Important considerations:
- Respond quickly (within 5 seconds) with a 2xx status code
- Process webhook data asynchronously if needed
- Store the webhook secret securely
- Always verify webhook signatures
- Implement idempotency handling using the provided idempotency key

