Read every page
object: "list", url, data, hasMore, and nextCursor.
- Process the items in
data. - If
hasMoreistrue, sendnextCursoras the next request’scursor. - Keep the same filters and continue until
hasMoreisfalse.
hasMore to decide whether to continue.
Treat cursors as opaque strings. Do not construct or parse them. Changing filters requires starting again without a cursor.
Choose a selector
Use at most one selector per request:
An exact path with no matching item returns an empty list. It does not return a resource-not-found error.
GET /v1/folders is the one exception: a parent_id that names no folder returns 404 folder_not_found. Every selector on GET /v1/files, and the other selectors on GET /v1/folders, return an empty list instead.
limit defaults to 100 and accepts values from 1 to 1000. See List files and List folders for the complete parameters.
Search results
Both searches use the list envelope, but returnhasMore: false and nextCursor: null. The result limit caps one response; it is not a page size for a resumable search.