Pagination
Swappr uses cursor-based pagination everywhere. Offset pagination is forbidden — it breaks under inserts and gets slow on large collections.Query
| Param | Type | Default | Max | Notes |
|---|---|---|---|---|
cursor | string | null | null | — | The nextCursor from a prior page. Omit on first page. |
limit | integer | 20 | 50 | Items per page. |
Response envelope
Sorting
Default sort is by creation time descending (newest first). Endpoints that allow alternate sorts document them explicitly via?sort=field,-otherField with a whitelisted set.