Webhooks
Create a webhook
Create a new webhook with subscriptions for specific agents and events.
400 is also returned when the endpoint URL is already registered: "A webhook with this URL has already been registered"
post/webhook
Request body
Example request
{
"endpoint": "https://example.com/webhook",
"description": "Webhook for conversation events",
"events": [
{
"agentId": "60d0fe4f5311236168a109ca",
"eventType": "post-conversation"
}
]
}Response
Webhook created successfully
Example response
{
"status": true,
"data": "60d0fe4f5311236168a109ca"
}