List Folders

ℹ️

Pagination behavior

  • Default pageSize is 10
  • For fetching next set of records always use pageToken
  • Filters applied in initial request are honored, so keep filters same for subsequent request
  • Google doesn't support pagination in the API
ℹ️

Folder hierarchy (Outlook Mail only)

  • By default, only top level folders are listed
  • Top level folders have parentId = root
  • To list children folders, include the parent folder ID in the request
  • Folder hierarchy and parent-child relationship is only supported in Outlook Mail

Supported Apps

Here is the list of apps that supports this API

AppApp IDRemarks
Google Mailgoogle-mailFlat folder structure only
Outlook Mailoutlook-mailSupports hierarchical folder structure
Language
Credentials
Click Try It! to start a request and see the response here!