# Webhook Setup

## Creating a Webhook

Login to your dashboard and go to section **Interconnection > Webhooks.**

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-Lmfmp2XnX3KiVVWI2DT%2F-LmfpP7zNZ_b6YbNAtlU%2Fimage.png?alt=media\&token=5b43ece1-673a-40de-95c1-a877cd32f8a1)

Hit '**Create'** to create a new webhook. You will see a pop-up to fill in basic details about your webhook like name, callback method, callback event & url. After filling these details you can click **'Save'** to save the changes.

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-Lmfmp2XnX3KiVVWI2DT%2F-LmfqpA7MCHiF2_iPkIR%2Fimage.png?alt=media\&token=eb09b54e-bfa2-4d38-a74f-eabd7eceb0ee)

Now go to **Phone Numbers** and select the number/numbers you want to configure to set up webhook for from the list of phone numbers

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-Lmfv7Wi1LyCJNRAl9uO%2F-LmfvBuLtRbm8KQQdSh2%2Fimage.png?alt=media\&token=c5136233-9981-479c-8cc1-1d74b716a905)

Check on  **"Edit Configuration"** to go to configuration screen.

Select your configuration type SIP, HTTP, Forward to Phone or Custom Dial Plan and then select option webhook on right hand side section as shown in below image.

![Selecting the webhook for the configuration](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-Lmfmp2XnX3KiVVWI2DT%2F-LmfsgnjRaA02WtC0Imn%2Fimage.png?alt=media\&token=a809be93-adf2-416b-b481-aa06e64a9d0f)

Click '**Save**' to apply changes.

Your number is now configured with Webhook.&#x20;

### Troubleshooting Phone Call and webhook responses&#x20;

You can see the request sent to your web application and the response we received in the reporting.&#x20;

Click on Reporting -> CDR, find the call that you want to troubleshoot.&#x20;

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-Lmfv7Wi1LyCJNRAl9uO%2F-LmfvcQB0J5X2phX_XEA%2Fimage.png?alt=media\&token=8bb18ca8-66c7-4f67-b63a-173d658f236e)

There are two legs. Click on the date of the first leg which shows the number dialed.&#x20;

| +12072487601 | 17173593982 |   |
| ------------ | ----------- | - |

Here you can see, we called webhook, <http://www.didforsale.com/apidemo/demo.xml.&#x20>;

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-Lmfv7Wi1LyCJNRAl9uO%2F-LmfvjMHl2L-ouZWNaWl%2Fimage.png?alt=media\&token=96defac0-c5f8-44af-91b1-fb8b42aa9428)

This call played the simple instruction and forward the call to another number.&#x20;
