> For the complete documentation index, see [llms.txt](https://docs.betsybot.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.betsybot.xyz/extras/betsy-rest-api/webhooks.md).

# Webhooks

Webhooks can be used through the Betsy Bot API to interact with your server.

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