REST API Pagination, Filtering, Sorting, and Search/Use a stable sort key with cursors

Paginate in a deterministic order.

Section: Pagination patterns

Use a stable sort key with cursors

http
http
GET /events?sort=created_at:desc&cursor=...
Explanation

Cursor pagination works best when the ordering is explicit and stable.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Pagination patterns
Cursor pagination
Use opaque cursors for large or changing datasets.
OpenIn sheethttpsame section
Offset pagination
Simple page and limit contract.
OpenIn sheethttpsame section
Return next-page metadata
Expose pagination state in the response body.
OpenIn sheetjsonsame section
Sort descending by one field
Ask for newest records first.
OpenIn sheethttp2 tag match
Sort by multiple fields
Provide fallback ordering.
OpenIn sheethttp2 tag match
Filter by exact field values
Restrict a collection by one or more fields.
OpenIn sheethttp1 tag match