Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Hi Kai Sölter
Thank you for reaching out to Microsoft Q&A
As I am forum moderator, I don't have access to your Azure tenant, and I cannot provision or approve APIs for your App ID (which was also omitted from your message).
However, I can help you troubleshoot the 9999 Internal Server Error you are receiving when calling POST /beta/communications/calls. As far as I know, this specific error typically indicates that your app is not fully registered or configured in the Azure Bot Service with the Microsoft Teams channel.
To resolve this and enable the Graph Communications Calling API, please ensure the following steps are completed by your tenant administrator:
1. Azure App Registration Permissions
Ensure your Azure AD App Registration has the correct Application permissions for the APIs you intend to call, and that Admin Consent has been granted:
-
Calls.Initiate.All -
Calls.InitiateGroupCall.All -
Calls.JoinGroupCall.All -
Calls.JoinGroupCallAsGuest.All(if joining as bot dynamically)
2. Azure Bot Registration & Calling Webhook (Critical for "9999" error)
To join meetings as a Bot or use calling APIs, you cannot simply call the endpoints using an Azure AD App Registration token. The app must be registered as a Bot Framework bot and linked to the Microsoft Teams channel.
Go to the Azure Portal.
Create an Azure Bot resource and link it to your existing App ID.
In the Azure Bot settings, go to Channels and add the Microsoft Teams channel.
On the Microsoft Teams channel settings page, open the Calling tab.
Enable Calling and provide a valid HTTPS Webhook for calling (ngrok or your live https endpoint).
Note: If the bot isn't connected to the Teams channel with the Calling webhook URL provided, calling the POST /communications/calls endpoints will throw the 9999 Internal Server Error.
Hope my answer will help you and kindly let me know in the comment section
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.