Request body:
{
"message": {
"to": {
"ms_teams": {
"team_id": <team_id>,
"channel_name": "Tests",
"tenant_id": <tenant_id>
}
},
"template": <template_id>,
"data": {
// my data
},
"providers": {
"msteams": {
"override": {
"config": {
"appId": <ms_teams_app_id>,
"appPassword": <ms_teams_app_password>
}
}
}
}
}
}
Response:
{
"channel": {
"id": "ab5806cb-38c4-4e96-9bb6-33f94aa5d22a",
"taxonomy": "direct_message:msteams",
"label": ""
},
"configuration": "c9fa1f80-3029-476e-bf7c-b3724965e8da",
"provider": "msteams",
"willRetry": false,
"errorMessage": "Failed to get channel id by name: Request failed with status code 403"
}
After Oauth flow, I confirmed my MS team app has these permissions
- ChannelSettings.Read.All
- TeamSettings.Read.All
- User.Read.All
Any thoughs?