Is polling allowed for Graph API delta calls?

N Thanes 20 Reputation points
2023-05-14T23:57:41.9466667+00:00

The documentation here indicates that polling the Graph API is not allowed and will result in throttling: https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0#polling-requirements

However, this official tutorial video shows that you can poll the delta API every 10 seconds for deltas: https://www.youtube.com/watch?v=IlN0RF-wLWQ

Can anyone clarify whether you can do what is mentioned in this video and poll the Graph API delta API for new Teams message deltas every 10s?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,510 questions
0 comments No comments
{count} votes

Accepted answer
  1. msft-gu 1,275 Reputation points
    2023-05-16T19:21:46.76+00:00

    Hi @N Thanes

    Good afternoon and thank you for your question! As I read on the article that you've shared, it only allows polling once a day. The workaround is to have webhooks or else it will be throttled.

    On the video, what he might be discussing is about Delta Query. Delta query enables applications to discover newly created, updated, or deleted entities without performing a full read of the target resource with every request. Microsoft Graph applications can use delta query to efficiently synchronize changes with a local data store.

    Delta Query Overview

    https://learn.microsoft.com/en-us/graph/delta-query-overview

    It is also only supported for the following resource:

    https://learn.microsoft.com/en-us/graph/delta-query-overview#supported-resources

    And the only related message related to Teams is Channel Messages:

    https://learn.microsoft.com/en-us/graph/api/chatmessage-delta?view=graph-rest-1.0&tabs=http

    I hope I was able to answer your question. If no, please let me know and I'll get back to you. If yes, please upvote it and accept it as an answer. May you have a great day ahead! 😊


0 additional answers

Sort by: Most helpful