Category: Forms and APIs

API pagination: next pages return the same records

Read this guide in Polish

The contact list has duplicates while scrolling, even though the limit is correct.

How to identify the source of the problem

Check the sorting stability and whether the cursor contains a full sorting key, including ID.

Save method, status, headers and anonymized body requests and answers.

Repair steps

Use keyset pagination with stable order and idmpotent record combination.

How to Test Solution

Each record appears exactly once when passing through the result.

Security and restrictions

Do not disable authorization or validation of webhook signature for status 200. Wash the tokens in the logs.