question

BaroneLou-2451 avatar image
0 Votes"
BaroneLou-2451 asked RamjotSingh answered

POST 1:1/group chat message Rate limiting

We have automation that we plan to send chat messages to users with. So like if your password is about to expire, or there is a security event, we will be firing one to one messages using the below endpoints. Just trying to understand the rate limiting, and throttling on this end point.

"https://graph.microsoft.com/beta/chats/$chatID/messages"

I saw a refernce for one to one chats, it looks like 2rps ( 2 requests per second) but it doesnt specify a maximum per day. It does however specify a maximum of 3000 per day going into a given channel.

https://docs.microsoft.com/en-us/graph/throttling#microsoft-teams-service-limits

TLDR: trying to understand if I had to send a message to all 20k or so users on any given day, what type of throttling or limits we would potentially run into.

Thanks.

microsoft-graph-teamworkmicrosoft-graph-throttling
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RamjotSingh avatar image
0 Votes"
RamjotSingh answered

Till you stay below the 2 RPS limit you should be generally fine. If you do get throttled, you should honor the Retry-After header if one is sent. In the absence of one, use 10 seconds wait to start with exponential backoff.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.