Pagination in the API is handled via the Link header standard:
curl -i https://sentry.io/api/0/projects/1/groups/
When supported, cursors will always be returned for both a previous and a next page, even if there are no results on these pages. This allows you to make a query against the API for yet-undiscovered results. An example where this would be used is when you’re implementing polling behavior and you want to see if there is any new data. We return a
results="[true|false]" indicator to determine if you actually need to paginate.