# Webhooks

### Azure Webhooks

#### Pull Requests

Send a new pull request Webhook to the Betsy API to send a notification to your server.

| Setting      | Value                                                                     |
| ------------ | ------------------------------------------------------------------------- |
| URL          | <https://api.betsybot.xyz/Webhook/AzureDevops>                            |
| HTTP Headers | <p>Betsy-Guild-Id:\<yourGuildId><br>Betsy-Channel-Id:\<yourChannelId></p> |

<figure><img src="https://i.gyazo.com/66391815e28dfdab446a777e4f469035.png" alt=""><figcaption><p>Azure Service Hook Configuration</p></figcaption></figure>

Enter the information above for a new Webhook Service Hook in azure to receive an update in the given channel. Set the headers correctly to ensure it works.

{% hint style="info" %}
The bot must be invited and have permission to post in the given guild and channel.
{% endhint %}

<figure><img src="https://i.gyazo.com/e965b80f8ef499765b4336090c87c3a8.png" alt=""><figcaption><p>Test Webhook Sent with the above provided configuration</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.betsybot.xyz/extras/betsy-rest-api/webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
