Create Webhook
Create a new webhook for an agent. Each agent can have at most one webhook of each type (pre_call and post_call).
HTTP Request
URL Parameters
Request Body
Pre-Call Webhook Example
Post-Call Webhook Example
Pre-Call Webhook Configuration
API Schema
Assignments
Post-Call Webhook Configuration
Note: Post-call webhooks do not support assignments (no variables are updated after call ends).
Response (Success)
Response (Error)
Validation Rules
- webhook_type: Required, must be “pre_call” or “post_call”
- webhook_config: Required
- Uniqueness: Only one webhook of each type per agent
- Pre-call assignments[].source: Must be “response”
- Pre-call assignments[].dynamic_variable: Must exist in agent’s dynamic_variables
- Post-call: No assignments field
See Also
- Agent Webhooks Overview - Learn about webhook types
- Update Webhook - Modify existing webhooks
- Delete Webhook - Remove webhooks
