JavaScript
Cleanup
In some cases, you may encounter webhooks that fail. These webhooks will still exist in your application and it's recommended you remove them.
To view all webhooks, make a GET request to:
https://api.vonage.com/t/vbc.prod/vis/v1/self/webhooks/This will return a list of all the webhooks. If the
failedparameter isTrue, then that webhook should be removed.Get the webhook id from the
idparameter and make a DELETE request, with that id:https://api.vonage.com/t/vbc.prod/vis/v1/self/webhooks/{WEBHOOK_ID}This will return a 204 when the webhook was deleted.
If you make another GET request to:
https://api.vonage.com/t/vbc.prod/vis/v1/self/webhooks/You will see the webhook with that id no longer exists.
Receiving call events using webhooks
Create a webhook to receive events from calls
Steps
1
Introduction to this task2
Prerequisites3
Create a webhook4
Create a local server5
Create a webhook6
Cleanup7
What's next?