I am currently working on a project where I need to send messages to over 20+ users individually on Microsoft Teams using the Microsoft Graph Batch API [https://graph.microsoft.com/v1.0/$batch]. The Microsoft Graph API to send chat messages to individual users is limited to 20 request per second as per the Microsoft Documentation. Therefore, I created a batch payload of 20 users and used the Microsoft Graph Batch API for sending message to those individual users.
The first batch of 20 messages gets sent successfully, but when I try to send the next batch, I receive an error indicating that the API call quota has been exceeded.
However, after the first batch, If I wait for 8 seconds then the second batch also succeeds else I receive a 429 error.
As per the Microsoft Documentation, I am making the API [https://graph.microsoft.com/v1.0/chats/{{chat_unique_id}}/messages] request in the Microsoft Graph Batch API within the specified quota but still receiving a 429.
Is there a some other limitation in the API that I am using to send chat message or is there any limitation in the Batch API?
Is there a way to increase the quota for API calls?
With a delay of 8 seconds between two Microsoft Graph Batch API request, the API request is successful without any failure. The problem is having a delay of 8 seconds is an overhead.
Subramani Narayanaswamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.