Pagination

Every list answers one page in the same shape; pass `next_cursor` back as `cursor` for the next.

In API version 2026-10-29 every list answers { "object": "list", "data": [...], "has_more": true, "next_cursor": "…" }, with total_count where the list counts. Ask for up to limit items per page; pass the previous page’s next_cursor as cursor until has_more is false. Treat the cursor as opaque.

The SDKs read every page for you: listAll (Node, PHP, Go), list_all (Python), a Stream (Dart).

Read every page

typescript
for await (const txn of watenga.transactions.listAll({ status: 'completed', limit: 100 })) {
  console.log(txn.id);
}

Related: API versioning