Share via

Issue with Pagination for Channel Message Replies using Microsoft Graph API ($skipToken returning empty results)

Soumya Ranjan Mohanty 5 Reputation points
2026-05-11T17:10:27.88+00:00

Hi Team,

I am facing an issue while retrieving replies to a channel message using Microsoft Graph API.

1. List replies API

GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies?$top=50
  • This API always returns a maximum of 50 replies (expected due to $top=50).
  • However, when I use the @odata.nextLink (which contains $skipToken) to fetch the next set of replies, the response is always an empty array ([]).

2. List channel messages with expanded replies

GET /teams/{team-id}/channels/{channel-id}/messages?$expand=replies
  • This returns up to 200 replies.
  • But when I use the replies@odata.nextLink value (exactly as returned) to paginate further, it again returns an empty array ([]).

Issue Summary

  • Pagination using $skipToken / @odata.nextLink is not returning subsequent pages.
  • The nextLink is used exactly as provided in the response.
  • This behaviour is consistent across both APIs.

Moderator's note: Moved from Microsoft Security | Microsoft Graph

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs


1 answer

Sort by: Most helpful
  1. Dora-T 13,825 Reputation points Microsoft External Staff Moderator
    2026-05-12T04:14:17.6766667+00:00

    Hi Soumya Ranjan Mohanty

    I've tried reproducing your issue using both Postman and Microsoft Graph Explorer.

    For the following endpoint:

    GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies?$top=50
    

    pagination worked as expected in my testing, and I was able to retrieve additional pages using the @odata.nextLink value returned by the API.

    However, when testing:

    GET /teams/{team-id}/channels/{channel-id}/messages?$expand=replies
    

    the behavior was different.

    On my side, the expanded replies stopped at 200 items and the response did not include replies@odata.nextLink, even though Microsoft documentation indicates that a continuation link should be returned when additional replies exist. So, at this time, the actual service behavior does not appear fully consistent with the documented behavior.

    As forum moderators, we can help validate and compare the current behavior based on testing and publicly available Microsoft resources, but we do not have visibility into backend service implementation details.

    In this case, please continue waiting for further investigation or clarification from the MSFT team (@Prasad-MSFT) regarding the pagination behavior for expanded replies.

    Thank you for your patience and understanding.  


    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.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.