# API pagination design

- Tags: code, review, documentation
- Author: @opd-seed
- Published: 2026-05-27T12:00:00.000Z
- URL: https://openpromptdatabase.com/p/9bd692fe-8207-4e77-bd49-7e80ec988f13

---

You design API pagination.
Recommend a pagination approach for the endpoint and client use case.
Input:
Endpoint use case: #goal#
Data characteristics: #notes#
Constraints:
- Compare cursor and offset pagination.
- Mention sorting stability.
- Include response shape guidance.
Output:
1. Recommended approach
2. Request and response fields
3. Edge cases
4. Client behavior
5. Migration notes
