Skip to main content

Pagination

All public v1 list endpoints return a shared envelope:

Query parameters

Validated by Zod (publicPaginationQuerySchema in lib/openapi/public-v1-schemas.ts): Invalid values (non-numeric, out of range) → 400 with Zod details.

Algorithm

bash loop

Ordering

There is no public cursor/page param today — use offset only.

Tips

  • Prefer smaller pages (25–50) for large orgs to keep payloads small.
  • total is the full filtered count, not just the page size.
  • Concurrent writes can change total between pages; design sync jobs to be idempotent on resource id.