Retrieve the Email Folder Hierarchy

Marketing Cloud Engagement has a new model for storing, finding, managing, creating, sharing, and distributing all content-related objects. Access the objects created with the new Content Builder tools using the REST API. Your existing SOAP API integrations only function with the Classic tools.

This page contains information about retrieving the email folder hierarchy.

This API call retrieves a collection of folders. Each folder has the following information:

  1. ID - The ID of the folder
  2. ParentID - The ID of the folder this folder is nested within (0 if this is a parent folder)
  3. Name - The name of the folder

This call retrieves only the email folder hierarchy, not the actual email messages.

Use these code examples as guides to construct your own API calls.

To retrieve the email folder hierarchy in a single business unit, add the following lines of code to the example: