Shape
Note the nesting: the envelope has
data, and the page object also has data. Be deliberate when decoding.
Query parameters
Defaults and accepted ranges are enforced by the backend. If you omit them, do not assume a specific page size; read
limit from the response.
Folder content is special
GET /folders/{folderId}/content returns a different object:
- items are under
content, notdata, - subfolders are returned before files within the ordered result,
totalItemsequalstotalFiles + totalFolders.
Subfolders are not paginated
GET /folders/{folderId}/subfolders returns the full list plus a parent descriptor:
File lists
GET /files/findAll/{bucketId} returns the standard page object for one bucket.
Deleted files have their own bucket-scoped listing: GET /files/deleted-files/{bucketId}.
Paging strategy
- Start at
page=1and readtotalPages. - Prefer small pages for interactive UI, larger pages for batch jobs.
- Do not rely on a stable order unless you pass
orderByorsortBy. Items can move between pages if the underlying set changes while you page. - For full exports, take a snapshot by filtering on a time range where possible, rather than paging a live-changing set.
- Stop when
page >= totalPages, not when a page is empty.
Consistency caveat
Pagination over a live set is not a transaction. If items are created or deleted during a scan:- you may see an item twice,
- you may miss an item,
totalmay change between pages.
fileId and folderId, not on position.
Related
Conventions
Envelopes and identifiers.
Files overview
File listing operations.
Folders overview
Folder browsing operations.
Errors
Failure handling.