Folder Details

The Folder APIs help you to get and update information about the Folder details of a particular user account.

While using Folder related API, use the OAuth Scope ZohoMail.folders.

Method NameURLMethod TypeOAuth ScopePurpose
Create a new folder/api/accounts/{accountId}/foldersPOST Create a new folder with the specified name and details, in the given path.  
Get all folders/api/accounts/{accountId}/foldersGETZohoMail.foldersTo get the details of all the folders in a particular account along with the Folder Id of each folder.
Get specific folder/api/accounts/{accountId}/folders/{folderId}GETTo get the details of a particular folder, based on the Folder Id provided. 
Rename folder/api/accounts/{accountId}/folders/{folderId}PUTTo rename a particular folder with the specified name. 
Move folder/api/accounts/{accountId}/folders/{folderId}PUTTo move a folder to a different position in the folder tree. 
Enable IMAP view for a folder/api/accounts/{accountId}/folders/{folderId}PUTTo enable IMAP view for the folder, to make it accessible from the IMAP Clients.
Disable IMAP view for a folder/api/accounts/{accountId}/folders/{folderId}PUTTo disable IMAP View for the the folder, to make it notaccessible from the IMAP Clients 
Mark all emails in a folder as read/api/accounts/{accountId}/folders/{folderId}PUTTo mark all emails in the folder as Read.
Empty folder/api/accounts/{accountId}/folders/{folderId}PUTTo delete all emails in the folder.
Delete folder/api/accounts/{accountId}/folders/{folderId}DELETETo delete the folder along with the emails and sub-folders