List operations in the Kosli API return results in pages. The SDK exposes the underlying page controls directly - there is no automatic iterator; you request each page explicitly.
Request parameters
Paginated operations accept page and perPage query parameters:
Different endpoints return pagination metadata in different ways.
Pagination object in the response body
Some operations return a pagination field alongside the results. It is omitted when all results fit on one page.
The pagination object contains:
Some operations return pagination links as a Link response header. Parse these to navigate to the next page without constructing URLs manually.
The Link header is only present when there are multiple pages. The SDK does not parse this header automatically - access it via the raw response if needed.
Iterating all pages
Fetch pages in a loop until there are no more results:
Last modified on June 22, 2026