# Microsoft Teams

> Microsoft Teams alert channels through a Workflows webhook - where to get the URL, which addresses are accepted and what the card looks like.

A Microsoft Teams channel posts alerts to a Teams channel or chat as an Adaptive Card, through a webhook of the Teams **Workflows** app.

1. In the Teams channel, open **Workflows** and add the template **Send webhook alerts to a channel**. When it is saved, it shows a URL; copy it.
2. On the project's **Alerts** page, choose **Add channel** → **Microsoft Teams** and paste the URL.
3. **Send test** to see a card arrive.

The URL is the one the Workflows app shows, with a `sig=` parameter:

- `https://<…>.logic.azure.com/workflows/…`, or
- `https://<…>.environment.api.powerplatform.com/powerautomate/automations/direct/workflows/…`.

No port other than 443. Office 365 connector URLs (`…webhook.office.com/…`) are refused: Microsoft retired those connectors. The URL is stored encrypted; the dashboard and the API show only the host afterwards.

## The card

The first line of the alert is in bold, every other line follows as plain text, and DOWN and escalation messages carry an **Acknowledge** button. Check names are shown as typed. The text is cut at 4000 characters.

## When Teams refuses

When the workflow answers 401, 403, 404 or 410 (it was deleted or asks for a signed-in caller), or redirects, the channel is **Not delivering** at once. Make the workflow again and add its URL as a new channel. When it answers 429, delivery waits as long as it asks.

Everything else (what is sent, retries, order) works as for the [other channels](https://docs.monitorly.cloud/alerts.md).
