Developers
Sign inGet API keys
Docs/Using the API

Pagination

List methods return one page at a time. Pass the page token from one response into the next request until there isn't one.

  • pageSize: how many to return. Leave it out for the method's default; each list caps how many it returns at once.
  • pageToken: empty for the first page, then the previous response's nextPageToken.
  • nextPageToken: missing on the last page.

Tokens are opaque: don't parse or build them, and keep the other filters the same while paging.

let pageToken: string | undefined;
do {
  const page = await lumora.customers.listCustomers({ pageSize: 200, pageToken });
  for (const c of page.customers ?? []) console.log(c.name);
  pageToken = page.nextPageToken;
} while (pageToken);