contact: delta API what limit can we user for odata.maxpagesize

Dmitrii V 20 Reputation points
2025-05-15T08:00:37.11+00:00

We user the contact: delta API for our app and also use the header Prefer with odata.maxpagesize - https://learn.microsoft.com/en-us/graph/api/contact-delta?view=graph-rest-1.0&tabs=http There is no information about the limit for this parameter in the documentation. We found out in practice that there is a limit in 200 contacts per request for the API. Could someone confirm which limit can we use?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
25,075 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rukmini 3,841 Reputation points Microsoft External Staff Moderator
    2025-05-19T05:12:47.6033333+00:00

    Hello Dmitrii V,

    You are correct that the Prefer: odata.maxpagesize header is supported by the Microsoft Graph contact/delta API; however, the official documentation does not provide a precise limit for this parameter.

    The odata.maxpagesize maximum value is:

    • 200 for objects, such as users and contacts
    • 500 for directory link objects (group members, for example).

    And the same number is returned if odata.maxpagesize is not set.

    Even if a higher value is specified, the API will cap the page size to these limits.

    Sometimes, an internal timeout threshold is also applied by the API. Even if there are more contacts available, the server may return fewer than 200 contacts if it is unable to gather and return the entire page of results in that amount of time.

    • Different requests may return a different number of results.
    • The presence of a **@odata.nextLink** in the response indicates there are more pages to fetch.

    To ensure correct and reliable data handling, set the header as Prefer: odata.maxpagesize=200

    User's image

    Hope this helps.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful, which may help members with similar questions.

    User's image

    If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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