Skip to main content
WiseYield list endpoints use offset pagination with two query parameters and a response envelope that tells you exactly where you are.

The contract

ParameterTypeDefaultConstraints
pageinteger1≥ 1
limitinteger201–100
Responses wrap data in an envelope with a pagination object:
FieldMeaning
pageThe page you requested (echoed back, never re-numbered)
limitThe page size that was applied (may be clamped to 100)
totalTotal active records matching the query
totalPagesMath.ceil(total / limit) — convenience field

Iterating to completion

Sorting and filtering

Most list endpoints accept sort, order, and resource-specific filter parameters. They compose with pagination:
ParameterTypeNotes
sortstringField to sort by — varies per resource (see the endpoint page)
orderasc or descDefault desc
Filters are resource-specific. See each endpoint’s reference page for the supported set.

Things to know

  • Pagination is stable under steady traffic but not snapshot-isolated — a record created between page 2 and page 3 will shift everything. If you need a consistent snapshot, paginate by sorting on a stable cursor (e.g. createdAt asc) and remember the last seen value rather than re-using page.
  • limit is hard-capped at 100. Requesting limit=500 is silently clamped to 100.
  • page=0 is treated as page=1 rather than returning an error.
  • Soft-deleted records are excluded. total reflects only active rows.
  • The pagination envelope is consistent across every list endpoint. Integrators can write a single pagination helper and reuse it everywhere.

Performance tips

  • Use limit=100 for bulk reads — fewer round-trips, same rate-limit cost (one request per page).
  • Filter aggressively in the query rather than client-side — every list endpoint supports the obvious filters (status, date range, type) and applies them at the database level.
  • For very large exports (>10k records), prefer the dedicated export endpoints (e.g. GET /api/v1/farms/{id}/reports/accounting-export) when available — they return the full dataset in a single call with a higher rate-limit budget.