What changed
Microsoft finished turning off Office 365 Connectors between May 18 and May 22, 2026, after moving the date several times since 2024. Every connector URL created in Teams, including Incoming Webhook URLs, stopped delivering. Microsoft’s retirement notice has the full history. Microsoft offers two replacements, and they solve different problems:
Use a Workflows webhook for one internal alerts channel. Microsoft’s guide covers it, and it needs no code beyond the POST. Use a bot when the message comes from your product, because a workflow belongs to whoever built it and posts to one channel. That is the path below.
Prerequisites
- A Courier Test API key
- A Teams bot connected to Courier and installed in the team. Send your first Microsoft Teams message covers both, in steps 1 and 2
- A published template with a Microsoft Teams channel
Move a webhook to a bot
1
Find your bot's home tenant
Open the bot’s app registration in the Azure portal and copy the Directory (tenant) ID from its Overview page. That is the bot’s home tenant, which you send as
source_tenant_id.2
Copy the channel's ids
In Teams, open the channel’s … menu and choose Copy link. The link carries both ids you need:URL-decode the path segment after
Channel link
/channel/ for the channel id, 19:5140d7460868414cac958ac76a0a94d0@thread.skype. Newer channels end in @thread.tacv2 instead. The tenantId query parameter is the organization, dabd1935-56a4-4305-938e-0840e2e84515.Sending by channel_id needs no Microsoft Graph permissions. Someone still installs your app in the team, so the organization’s Teams settings must allow custom apps.3
Send to the channel
Put the ids in
to.ms_teams and send a template with a Teams channel. source_tenant_id is your bot’s home tenant from step 1. Courier needs it when the channel belongs to another organization, such as a customer’s. It’s safe on every send, because for your own organization it equals tenant_id. Bots in a different tenant explains the split.service_url defaults to https://smba.trafficmanager.net/amer, the Americas endpoint. Microsoft lists https://smba.trafficmanager.net/teams as its global endpoint, without a trailing slash, because Courier adds the path. Profile requirements lists every other way to address a recipient, including users by email and thread replies.Verify
1
Check the channel
The message appears in the channel from your bot, with your app’s name and icon.
2
Read the status
Open Logs and find the send. A credential or install problem shows as
All Bot Framework authentication methods failed, followed by the HTTP status.Move an existing connector integration
If your code posted to Incoming Webhook URLs, three things change:- A URL per channel becomes two ids per channel. Store
channel_idandtenant_idwhere you stored the webhook URL, and install your app in each team that had one. - MessageCard becomes an Adaptive Card. Build the card in the template with a Jsonnet block, as Adaptive Cards shows, and keep the send unchanged.
- The code stops building payloads. The send names a template and a recipient, so card layout lives in the template instead of in your service.
What changes in production
Store each customer’s ids once. Each organization that installs your app has its owntenant_id and channel ids. Keep them with the customer record, or on a tenant’s user_profile if you already model customers as tenants. Don’t post to a channel by sending to to.tenant_id, because that sends once per member of the tenant.
Ask customers for a channel link. Their Teams admin uploads your app package to their organization’s app catalog, or installs it from the Teams Store if you publish there. They add it to a team and paste the channel’s link into your settings page. Your service decodes the two ids from it, as in step 3.
Client secrets expire. Azure asks for an expiry date when you create the secret. Rotate it in Courier’s Teams integration before that date, or every send fails with Failed to acquire any Bot Framework authentication token.
FAQ
Do Teams Incoming Webhooks still work?
Do Teams Incoming Webhooks still work?
Teams Incoming Webhooks stopped posting when Microsoft retired Office 365 Connectors between May 18 and May 22, 2026. Replace them with a Workflows webhook for internal alerts or a bot for product notifications.
Was Courier's Microsoft Teams integration affected by the connector retirement?
Was Courier's Microsoft Teams integration affected by the connector retirement?
Courier’s Teams integration wasn’t affected, because it sends through your bot with the Bot Framework’s proactive messaging API. It never used Office 365 Connectors.
Is a Workflows webhook enough to notify customers in their Teams?
Is a Workflows webhook enough to notify customers in their Teams?
A Workflows webhook rarely fits customer notifications. A workflow posts to one channel, belongs to whoever built it, and posts as the Workflows bot. Each customer would have to build and maintain their own, while one bot reaches every organization that installs your app.
Can Courier send to users as well as channels in Microsoft Teams?
Can Courier send to users as well as channels in Microsoft Teams?
Courier sends to Teams users as well as channels. Address a user by
user_id, by email, or by an existing conversation_id. Sending by email needs Microsoft Graph permissions with admin consent in the recipient’s organization, as the integration page explains.