Discussions
Webhook not receiving events
5 months ago by null
Hi I created a webhook and subscribed for events and I am unable to receive the data.
webhook ids: 6461601519583232, 6401739364319232
Any help is appreciated.
I created the api controller method that reads data from the request body
subscription event:
{
"call_states": [
"recap_summary",
"calling"
],
"enabled": true,
"group_calls_only": false,
"id": "4923468705513472",
"webhook": {
"hook_url": "https://mydomain.com/dialpadapi/dialpadwebhook/receiveevent",
"id": "6461601519583232",
"signature": {
"algo": "HS256",
"secret": "xxxxxxxxxxxx",
"type": "jwt"
}
}
}
My Api Controller
[HttpPost]
[Route("ReceiveEvent")]
public async Task ReceiveEventAsync()
{
try
{
_logger.LogInformation(Request.Body)
}
catch (Exception ex)
{
_logger.LogError(ex, "Error Receiving Webhook Event");
}
}
Any help is appreciated
Thanks
Vivek