Skip to main content
Skip table of contents

How to enable notifications from Bitbucket in Microsoft Teams?

Post Webhooks for Bitbucket provides support for Microsoft Teams notifications by allowing you to send real-time notifications to your Microsoft Teams channels whenever certain events occur in your Bitbucket repositories.

You can configure a webhook in Bitbucket to send a payload to a Microsoft Teams Incoming Webhook URL whenever a specific event, such as a code push or a pull request merge, takes place.

Microsoft Teams Incoming Webhook URL

To generate an Incoming webhook in Microsoft Teams, follow these steps:

  1. Open Microsoft Teams and navigate to the desired channel where you want to add the Incoming webhook.

  2. Click on the three-dot menu (ellipsis) next to the channel name and select Connectors from the menu.

  3. On the Connectors page, search for Incoming Webhook and click on it.

  4. Click on the Configure button and provide a name for the Incoming webhook and, optionally, upload an image or configure other settings as needed.

  5. In case the connector wasn’t added to the particular channel before instead of the button Configure you will see the button Add. Add the connector to the channel and repeat all the steps from points 1-4.

  6. Click on the Create button to continue and a webhook URL will be generated.

  7. Copy this URL as it will be needed during the configuration process (follow the instruction below) and click on Done.

Post Webhooks for Bitbucket supports the old and new formats of Microsoft Teams Incoming Webhook URL.


Once you have got the Incoming Webhook URL, you can proceed with the configuration of Microsoft Teams notifications. Configuration of Microsoft Teams notifications is available on all configuration levels:

Global Configurations for Bitbucket admins

Project Level Configurations

Repository Level Configurations

  1. Find our application Post Webhooks on the level that suits your needs best: Global, Project, or Repository.

  2. Click on Add webhook button in the left corner and create a new configuration.

  3. Input generated Incoming Webhook URL to the URL field and specify all the necessary parameters (see table below).

  4. Click on the Save button.

Below you can find a short definition of the parameters you have to specify:




the name of the configuration

Our advice is to name something meaningful to you and your team so that it can be understood later easier


created Microsoft Teams Incoming Webhook URL.


Active checkbox should be enabled if this configuration is going to be used.

Repository events

Pull request events

allows you to specify the types of events that should trigger the webhook.

The rest parameters are optional to provide flexibility and customization options.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.