Skip to main content
A list route returns one page at a time, in this shape:

Parameters

A request may carry startingAfter or endingBefore, not both.

Reading a whole list

  1. Request the first page with no cursor.
  2. If hasMore is true, request the next page with startingAfter set to the nextCursor you received.
  3. Repeat until hasMore is false.

Filters and order

A list route may accept filters, listed in the API Reference for that route. Boolean filters take the words true and false. A cursor is bound to the filters and the orderBy it was issued under. Sending it back with different filters or a different order returns 400 rather than a page that silently skips or repeats records. To change either, start again from the first page with no cursor. Cursors are opaque. Store and return them unchanged, and do not build them yourself.