Hi. For checkpoint pagination, I am calling /api/v2/organizations/{id}/members?take=100&fields=picture&include_fields=false on an organization with 70 members, but the response includes ‘“next”:{id}’. The docs seem to indicate that I should only see “next” if there are more results. Is this behavior expected?
When I call the api again and include from={id}, the response is “members” with an empty array.
Welcome to the Auth0 Community and sorry for the late reply.
This is the expected behavior, but only when using the take
query parameter in your first request. It is also specified in our documentation that
The first time you call this endpoint using Checkpoint Pagination, you should omit the
from
parameter
so since - take provides the total amount of entries to retrieve when using the from parameter, that is why you are also getting a ‘next”:{id}’.
Hope this helps.
Best regards,
Remus
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.