object names the list, data holds the items, and has_more is true when there are more items after this page. Lists are paged in one of two ways:
Both kinds take
limit: items per page, 1 to 250. Default 50.
Offset paging
Skip the items you already have withoffset:
has_more is true, raise offset by limit for the next page (offset=100, then offset=200 …).
Cursor paging
Cursor lists also return acursor:
cursor back to get the next page, with the same filters:
has_more is false, you’ve reached the last page, and cursor is null.
Email and draft cursors point at the last email returned, not at a page number. Mail that arrives while you page doesn’t shift the pages, so you never get an email twice or skip one.
A
limit out of range, a negative offset, or a broken cursor gets 400 errors/invalid_parameters.