> For the complete documentation index, see [llms.txt](https://docs.didforsale.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.didforsale.com/sip-trunking/configuration-of-phone-numbers/webhook.md).

# Webhook Setup

## Creating a Webhook

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

![](/files/-LmfpP7zNZ_b6YbNAtlU)

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.

![](/files/-LmfqpA7MCHiF2_iPkIR)

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

![](/files/-LmfvBuLtRbm8KQQdSh2)

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](/files/-LmfsgnjRaA02WtC0Imn)

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;

![](/files/-LmfvcQB0J5X2phX_XEA)

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>;

![](/files/-LmfvjMHl2L-ouZWNaWl)

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.didforsale.com/sip-trunking/configuration-of-phone-numbers/webhook.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
