The error DirectApiAuthorizationRequired means the HTTP action is calling a Microsoft Teams endpoint directly without OAuth authentication, but Teams requires an authenticated request.
This typically happens when:
- The flow uses an HTTP action to call a Teams or Graph API endpoint directly instead of using the Microsoft Teams connector
- The HTTP action has no authentication configured
- A previously working connection expired or was revoked
Fix options:
1. Use the Microsoft Teams connector instead of a raw HTTP action. The Teams connector (Post a message in a chat or channel, Post an adaptive card etc.) handles OAuth automatically through the connection. Replace the HTTP step with the appropriate Teams connector action.
2. If you need to use the HTTP action directly (e.g. calling Graph API for a Teams endpoint), add authentication to the HTTP action: click the three dots on the action > Settings > Authentication > Active Directory OAuth, then configure Tenant, Client ID, Secret, and Audience (https://graph.microsoft.com).
3. If the Teams connector action is already being used and started failing: the connection may have expired. Go to the flow's connections, find the Teams connection, and reconnect it by re-authenticating.
Given the flow names (GithubFlow, Reddit Workflow) suggest this may be an integration flow that's been running a while and a token/connection expired rather than a new configuration issue. Reconnecting the Teams connection is the first thing to try.
Best regards,
Valantis
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.
❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).
🏷️ For follow-ups @Valantis.
📝 https://valantisond365.com/