We’ve implemented pagination to ensure consistent responses, even when data changes between requests. To improve reliability and efficiency, we’ve transitioned from page-based pagination to cursor-based pagination. Now, instead of using the page parameter, you should use the after parameter for larger datasets (i.e. appointments, treatments, patietns, ledger transactions and patient referrals), which should contain the ID of the last item from the previous page. This approach offers a more stable way to paginate through dynamic datasets. You can specify the number of items to return using a query parameter, with a maximum allowed value of 5000. For rest we will keep using page parameter.