Overview
A client-mode connector for a curated messaging slice of Microsoft Graph Teams and Workflows Incoming Webhooks:
Default
BASE_ADDRESS is https://graph.microsoft.com/v1.0. Topics use messaging/microsoft-teams/<object>/<verb>.
Workflows Incoming Webhooks are not on
graph.microsoft.com. When calling Postwebhookadaptivecard, set connector BASE_ADDRESS to the webhook origin (scheme + host + port) and put path + query in webhook_path. Auth for the webhook is embedded in the URL; do not send an Authorization header.Prefer Hub secrets for Entra access tokens. Channel/chat send usually needs a delegated token (
ChannelMessage.Send, Chat.ReadWrite). This template has not been verified against a live Teams tenant. Status remains blocked until an authenticated live smoke succeeds.Basic Syntax
Events
Auth
Microsoft Graph (channel / chat):- Register an Entra ID app (or use an existing one) and obtain an access token for
https://graph.microsoft.com. - Prefer delegated permissions:
ChannelMessage.Send,Chat.ReadWrite/ChatMessage.Send. - Set connector
BASE_ADDRESStohttps://graph.microsoft.com/v1.0. - Pass
access_tokenon the MQTT request payload so headers resolve:Authorization: Bearer {value.json.access_token}. - Store the token in Hub secrets /
GET SECRET "TEAMS_GRAPH_TOKEN". Never commit real credentials. - Successful send returns HTTP 201.
- In Teams, create a Workflow from a webhook template (or Power Automate “When a Teams webhook request is received”).
- Copy the HTTP POST URL. Split into origin →
BASE_ADDRESSand path+query →webhook_path. - POST an Adaptive Card wrapper (
type: message,attachments[].contentType: application/vnd.microsoft.card.adaptive). - No Authorization header. Expect HTTP 200/202 depending on the connector.
Example payloads
Channel message:BASE_ADDRESS = webhook origin):
Deploy notes
- Deploy
MicrosoftTeamsRestApi.lotonly (-addRoute). Do not deployhub-metadata.lotas a connector — it exists for Hub /-listTemplates(ADD METADATA+WITH IMAGEbase64). - Hub category: REST API Connectors.
- Doc link: https://docs.coreflux.org/latest/lot-language/routes/rest-api-apps/microsoft-teams

