Agent Webhooks
Create Webhook
Create a new webhook configuration for an agent
POST
Overview
Creates a new webhook configuration for an agent. Webhooks allow you to receive real-time notifications when specific events occur during calls.Endpoint
Agent UUID
Request
Response
Indicates if the webhook was created successfully
Success message
Created webhook object
Unique webhook identifier
Agent UUID this webhook belongs to
Webhook name
Webhook URL
Array of configured event types
Request timeout in seconds
Maximum retry attempts
Whether webhook is active
ISO 8601 timestamp when webhook was created
ISO 8601 timestamp when webhook was last updated
Number of events configured for this webhook
Current webhook status
Error responses
Validation rules
- name: Required, string, maximum 255 characters
- webhook_url: Required, valid URL, maximum 500 characters
- webhook_secret: Optional, string, maximum 255 characters
- events: Required, array with minimum 1 event, each event must be from available events list
- timeout: Optional, integer between 5-120 seconds (default: 30)
- max_retries: Optional, integer between 0-10 (default: 3)
- enabled: Optional, boolean (default: true)
Important notes
- Webhook operations automatically clear the agent cache for immediate effect
- Use HTTPS endpoints for webhook URLs in production
- Implement proper signature verification using the webhook secret for security
- Test your webhook endpoint before going live using the test endpoint
Related endpoints
- List Agent Webhooks - Get all webhooks for an agent
- Get Webhook Details - Retrieve specific webhook information
- Update Webhook - Modify webhook configuration
- Delete Webhook - Remove webhook configuration
- Toggle Webhook Status - Enable/disable webhook
- Test Webhook - Send test payload to verify connectivity