Frequently asked questions
This article covers the Workflows-app webhook route for one-way Teams alerts, which is the simplest way to push a message into a channel from a script or a Activepieces flow, and the point where Graph or a bot takes over.
This takes minutes, not a project: automate it in Activepieces free.
Understand Teams webhook definition and purpose
A Teams webhook is a URL that accepts an HTTP POST and publishes the body as a message in a channel or chat. In practice that means a Workflows-app webhook posting an Adaptive Card, and the name also covers two older things that behave differently.
Three things get called a "Teams webhook", and the table shows which way data flows in each. It also shows what you can still build on as of 4 December 2026. Only the first row is a safe starting point for new work.
| Thing | Direction | Who creates it | Status as of 4 December 2026 |
|---|---|---|---|
| Workflows webhook | Into Teams | A channel member, from the Workflows app | Current, and the route this article uses |
| Office 365 connector webhook | Into Teams | A channel owner, from the connectors menu | Retired |
| Outgoing webhook | Out of Teams | A team member, from the team's app settings | Still available, but a different job |
Workflows webhook versus legacy connector webhook
If an old script of yours now fails with a 4xx from a webhook.office.com URL, Microsoft retired the connector; you didn't misconfigure it. Retries won't fix it.
To replace it, you create a workflow from the "post to a channel when a webhook request is received" template and get a fresh URL.
You have to rewrite your old payload too, because the new trigger expects an Adaptive Card wrapped in a message attachment rather than the old MessageCard format.
When someone @mentions an outgoing webhook in a channel, Teams POSTs that message to your endpoint, which can answer in-thread. It goes the opposite way from the others, and it can't start a conversation, so it's no use for alerts.
You need a Teams account that can add workflows to the target channel, and a tenant where an admin hasn't switched the Workflows app off. If the template is missing from your list, ask your admin before debugging anything else.
You can then call the URL from your own code or from a flow in Activepieces, where the Free plan costs $0, includes 1,000 credits a month, and still has unlimited flows, so you can experiment with automation without initial spending.
Stage 1: Create the webhook URL in Teams
You create the URL from the channel's Workflows menu. Pick the template "Post to a channel when a webhook request is received", name it, choose the team and channel, and copy the address it gives you.

In Teams, go to the channel you want alerts in, open the More options (three dots) menu next to its name, and choose Workflows. If the entry is missing, your tenant admin has probably restricted the Workflows app.
- In the template list, choose "Post to a channel when a webhook request is received".
- Give the workflow a name you will recognise in six months, such as "alerts-deploy-failures". The name is the only label you get when something breaks.
- Confirm the account it signs in with, then select the team and channel.
- Create the workflow.
If someone removes your account or you lose access to the channel, the workflow stops delivering, because it runs as you, the person who created it. Messages post under your connection. For anything that matters, create it from a shared or service account.
Copy and protect the URL
When creation finishes, Teams shows the HTTP address. Copy it now and store it in a secrets manager or an environment variable.
This URL is the credential, because anyone holding it can post into the channel as your workflow. Don't commit it to a repo or paste it into a ticket.
Stage 2: Send a first custom message with curl
Get the envelope wrong and you see a 400 or a silent nothing in the channel. A first custom message is one POST to the Workflows URL whose JSON body wraps an Adaptive Card in a message envelope, so build it in this order.
- Set the header
Content-Type: application/json. - Make the body an object with
"type": "message"and anattachmentsarray. - Put one attachment in it with
contentTypeset toapplication/vnd.microsoft.card.adaptive, and acontentobject declaring Adaptive Card version 1.5, so every element you use later works. - Send it with
curl -X POST -H "Content-Type: application/json" -d @card.json "$WEBHOOK_URL". - Check for HTTP 202, then open the channel and look for the card.

Don't read a 202 as proof of delivery: it means the flow accepted the request, not that Teams rendered anything. A card that never appears is a flow-run problem, so open the run history in Workflows.
Swapping plain text for an Adaptive Card
Inside content, a FactSet renders title and value pairs, which suits alerts such as service, environment and status. Add an Action.OpenUrl in the card's actions array and the reader gets a button straight to the dashboard or runbook.
For a mention, put <at>Name</at> in a TextBlock and declare a matching entry under msteams.entities. If the two don't match, the text prints literally and nobody gets pinged.
Webhook URL versus Graph API token
That simplicity has limits: the request is one-way, with no reply to a specific message and no delivery to a named person.
With the Graph API you authenticate with a token instead, and in return you can post into threads, reply, and message individual users. That means an app registration and permissions to manage, which is more setup than an alert needs.
Start with the webhook, and move to Graph or a bot when you need a reply, a thread, or per-user delivery.
Stage 3: Limits, errors and failures in production
You get a 429, nobody tells you the card was dropped, and a sender with no queue loses the alert. That is how Teams webhooks fail in production, by throttling, so you plan for limits before the first incident.

Rate limits and payload size by route
Don't build capacity plans on the cells marked "unconfirmed" in the table: I could not verify a figure for them on 2026-12-04. The rest is what each route documents.
| Route | Authentication | Rate limit | Payload cap | 429 / Retry-After |
|---|---|---|---|---|
| Workflows webhook | Secret in the URL | Unconfirmed (checked 2026-12-04) | 28 KB documented for Teams | Unconfirmed |
| Legacy connector | Secret in the URL | Unconfirmed (checked 2026-12-04) | 28 KB documented for Teams | Unconfirmed |
| Graph API | OAuth bearer token | Unconfirmed (checked 2026-12-04) | Unconfirmed | Unconfirmed |
Take two things from it. The URL is the credential for both webhook routes, so treat it like a password. And 28 KB means a card stuffed with a raw log dump will be rejected, so send a summary and a link.
The only confirmed throttling numbers are for bots, per Jitterflow. Per Jitterflow, one bot gets 7 messages per second per thread. According to Learn, all bots together get 14 per second per thread, so a second bot in the same thread eats into your budget.
Each tenant app gets 50 per second. Those are not webhook limits, so don't assume they apply to your channel post.
- A 429 Too Many Requests means you are sending too fast. Back off, don't hammer.
- A rejected payload means the card is over the cap or the JSON is malformed. Retrying won't fix it.
- A silent failure after a person leaves happens because the Workflows flow runs under its owner's account, so when that account is disabled the webhook stops working.
- Put alerts on a queue instead of posting from the event handler.
- On a 429, wait for Retry-After if present, otherwise use exponential backoff with jitter.
- Never retry a payload rejection. Log it and drop it.
- Make a service account the flow's owner, so no departure breaks it.
- Check the flow's run history on a schedule, since a failed run won't page anyone.
You can follow the rest of this with the builder open. Start free, no card.
Stage 4: Verify and secure Teams webhook traffic
For a channel post the URL itself is the credential, because a Workflows URL signs nothing; outgoing webhooks and bots sign every request with HMAC-SHA256. The two cases need different handling.
Checking the HMAC signature
The failure you'll hit first is a signature mismatch on a payload that looks fine. The cause is almost always that your framework parsed the JSON and you hashed a re-serialized copy. Hash the raw body bytes, exactly as they arrived.
Teams sends the body plus an Authorization header starting with HMAC. Your server computes HMAC-SHA256 over the raw body, using the base64-decoded security token Teams gave you when you created the outgoing webhook, and compares the result to the header.
import hmac, hashlib, base64
def valid(raw_body: bytes, header: str, token_b64: str) -> bool:
key = base64.b64decode(token_b64)
mac = base64.b64encode(hmac.new(key, raw_body, hashlib.sha256).digest()).decode()
return hmac.compare_digest(f"HMAC {mac}", header)
On one side of the illustration below, Teams posts a body and HMAC header to your server, which recomputes the hash and starts a reply timer; on the other, a Workflows URL is marked "secret URL, no signature".
Take from it that only the first path lets you prove who sent the request.
Teams won't wait on slow work. Acknowledge quickly, then hand the real job to a queue, or the user sees a failed reply. If you need threaded replies or per-user delivery, stop stretching webhooks and use a bot or the Graph API.
Keeping a Workflows URL secret
You cannot tell who sent a request to a Workflows URL: nothing on it proves that, so anyone holding the URL can post into your channel.
Treat it like a password: keep it in a secrets store, out of repositories, tickets and chat, and out of logs that echo request targets.
If the URL leaks, you replace it by recreating the flow's trigger or the flow itself, then update every caller. Rotation is manual, and doing this before you need to is cheaper than doing it during an incident.
Because you can't authenticate the sender, never let a Workflows post trigger anything that acts on trust. That job belongs to a bot.
Send Teams messages from other apps with Activepieces
Activepieces relays an event from another app into a Teams channel as a one-way alert, and when the source app has no integration yet, you don't wait on a vendor release: you generate one with AI and add it privately to your own instance.
Its 751 integrations are counted directly from the packages/pieces/community directory of the MIT-licensed monorepo, and roughly 60% were built by the community, so most aren't maintained by full-time staff. Past that, replies and threads need a bot.
Build the flow below once and every other source app is a change to step 1 and step 2; it is the whole pattern, which means you're not rebuilding the flow for each source app.
- Trigger: pick the source app's integration trigger, or the generic webhook trigger if the app has no integration and can only POST to a URL.
- Map fields: build the Adaptive Card JSON and drop the event's fields (title, status, link) into it.
- Send: use the Microsoft Teams action, or an HTTP action that POSTs the card to your Workflows webhook URL.
- Error branch: on a failed send, retry or post an alert somewhere other than the channel that just failed.
Skip step 4 and a dead Workflows URL goes unnoticed for a week: nothing errors on the sender's side, the alerts just stop arriving.
What relay service costs
The Free plan is $0 per month, so you can build and run this relay before spending anything.
Plus is $20 per month, which is the realistic step up if the relay becomes something your team depends on, so it's a defensible infrastructure allocation for a dependency.
Team is $200 per month, ten times Plus, and a single alert relay won't justify that on its own, meaning you need multiple relays to make this economical. It makes sense only when several people are building and sharing flows.
When to skip it and call Teams directly
If the source app can already POST JSON, and you can shape that JSON into an Adaptive Card yourself, point it straight at the Workflows URL. That removes a middleman and a bill.
Skip Activepieces too when the sender is your own code: one HTTP call is simpler than a flow, even though a run costs just 1 credit however many steps it has.
Use Graph or a bot when the message must land in a thread, reach one named person, or wait for a reply.
None of Activepieces' 751 integrations changes that, because the limit sits in the webhook, which never hands back a parent message ID, so every flow that posts to it starts a new top-level message.

Is the Office 365 connector webhook still working in 2026?
No. Microsoft retired the Office 365 connector webhooks, and the Workflows app is the replacement.
An old outlook.office.com/webhook/... URL is a dead end, so create a new Workflows webhook and update the sender. The body changes too: send an Adaptive Card inside an attachments array, not the legacy MessageCard format.

Can a Teams webhook post to a private chat or a person?
Partly. A Workflows webhook can be built to post into a chat as well as a channel, so one fixed group chat or one fixed person works.
You still choose the destination when you build the workflow, not per request. If you need to message whichever user owns an alert, use the Graph API or a bot.
Does a Teams webhook cost anything?
There's no separate webhook fee, but the workflow runs on Power Automate. Power Automate enforces daily request limits that depend on your licence, and a noisy alert source can hit them.
Once throttled, runs fail or lag and alerts arrive late or not at all. Batch your alerts, or deduplicate before they reach the webhook.
Why does my Teams webhook return 202 but nothing appears?
HTTP/1.1 202 Accepted
That 202 means the workflow accepted the request, not that Teams rendered it. The failure happens later, inside the run. Open the workflow's run history in Power Automate and read the failed step. The usual causes:
- A card that doesn't match the expected
attachmentsshape. - A card using elements newer than Adaptive Card version 1.5, which Teams doesn't render.
- A workflow that was turned off.
- A workflow whose owner lost access to the target channel.
Because the sender sees a success code either way, check run history before you debug your own code.
Can a webhook reply in a thread?
No. A webhook can only start a new message, so every alert becomes a fresh top-level post.
Threading needs the ID of the parent message, and a webhook never hands one back. Replies and threads belong to the Graph API or a bot, which is where this article draws the line.
Related reading
References
Build it
Set this up in minutes.
No code required. Connect your accounts, and Activepieces runs it from there.
Start free Talk to sales


