Skip to main content
List endpoints return results in pages. Yoshi uses cursor-based pagination — each response includes an opaque cursor that points to the next page.

How it works

Send a request with an optional limit to control page size:
The response includes pagination fields alongside data:
To get the next page, pass the cursor from the previous response:

Iterate all pages

The SDKs handle pagination automatically with async iterators. Use manual pagination only if you’re calling the API directly.

Parameters

Common pitfalls

Don’t parse the cursor. It’s an opaque string — its format may change without notice. Don’t store cursors long-term. Cursors are designed for sequential traversal within a single session. They may become invalid over time. Don’t assume stable ordering across pages. If new items are added while you’re paginating, you may see them on a later page or miss them. For transactions, new items typically appear at the beginning of the list. Handle invalid cursors. If a cursor is expired or malformed, the API returns a 400 error:
When this happens, restart pagination from the beginning (without a cursor).

Which endpoints support pagination

Last modified on April 17, 2026