curl --request POST \
--url https://call.aiployees.com/api/user/assistants/enable-conversation-ended-webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assistant_id": 123,
"webhook_url": "<string>"
}
'{
"message": "Conversation ended webhook enabled successfully",
"data": []
}
Enable webhook notifications when a chat conversation ends
curl --request POST \
--url https://call.aiployees.com/api/user/assistants/enable-conversation-ended-webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assistant_id": 123,
"webhook_url": "<string>"
}
'{
"message": "Conversation ended webhook enabled successfully",
"data": []
}
Show Error Response
{
"message": "Conversation ended webhook enabled successfully",
"data": []
}