Blog

How to create a Microsoft Teams webhook

Microsoft retired the old "Connectors" feature that used to be the standard way to get a webhook URL into a Teams channel. The replacement lives inside the Workflows app (built on Power Automate), and it's aimed at a wider audience than "paste a URL" — but there's a specific template that does exactly that in under a minute.

1. Open Workflows for the channel

In Microsoft Teams, go to the channel you want alerts posted into, click the (more options) next to the channel name, and choose Workflows. (If your tenant still shows a "Connectors" option instead, that's the legacy path Microsoft has been phasing out — the Workflows template below is the current, supported way to do the same thing.)

2. Find the right template

Search for "Post to a channel when a webhook request is received". This is the one built specifically to hand you a plain webhook URL, as opposed to the dozens of other Workflows templates aimed at multi-step automations.

3. Create the workflow

Sign in if prompted, confirm the team and channel it should post to, give the workflow a name, and click Create. Teams will generate a unique webhook URL and show it to you once — copy it now.

4. Save the URL somewhere safe

Same rule as any webhook: this URL is a bearer credential. Anyone with it can post into that channel, with no additional login required.

5. Test it

The Workflows webhook template accepts the same Office 365 Connector MessageCard JSON shape that the legacy Connectors used, which is why most existing Teams integrations only needed a URL swap, not a payload rewrite:

curl -X POST -H 'Content-Type: application/json' \
  -d '{
    "@type": "MessageCard",
    "@context": "http://schema.org/extensions",
    "text": "Hello from curl"
  }' \
  https://YOUR-TENANT.webhook.office.com/webhookb2/YOUR/WORKFLOW/URL

If the message shows up in the channel, you're done — this webhook now works with anything that can send that JSON shape.

Wiring it into QueueHawk

To use this for Hangfire job alerts: in the QueueHawk dashboard, go to Notifications → New Channel, pick Microsoft Teams as the type, name it, and paste the webhook URL from step 3. QueueHawk already sends the classic MessageCard payload shape described above, so no extra configuration is needed on either side. Click Send test to confirm delivery, then attach the channel to the alert rules that should notify it.

See also: the two alert rule types and how notification channels fit together, and the Slack equivalent of this guide.

← All articles Try QueueHawk free →

Find out before your client does

Free for one application, no card required.

Start free