Getting Started
Give Feedback

Pagination

Updated on July 14, 2026

Large Tradeics collections (catalogs, RFQs, suppliers, wallet movements) should be fetched page by page. Design clients for pagination before volumes grow.

Conventions to expect

As REST V2 routes expand, list endpoints typically accept:

Parameter Role
limit / page_size Page size (cap enforced server-side)
offset / page Offset- or page-based traversal
cursor / starting_after Cursor traversal when offered

Responses usually include either:

  • a data array plus pagination metadata (has_more, next_cursor, totals), or
  • link headers / next-page tokens documented per route.

Always read the route notes in REST API V2 — do not assume Stripe-identical cursor names until the field is documented.

Client rules

  1. Cap page size to what the API allows; bigger pages can hit timeouts and rate limits.
  2. Stop when has_more is false / next cursor is empty — never invent offsets.
  3. Stabilize sorts (created_at, id) when stitching pages for sync jobs.
  4. Persist cursors for incremental syncs; do not restart from page 1 every minute.
  5. MCP tools that wrap lists should request modest pages so agents stay within token and rate budgets.

Sync pattern

cursor = null
loop:
  page = GET /resource?limit=100&cursor=cursor
  upsert(page.data)
  if not page.has_more: break
  cursor = page.next_cursor

Next