[CMS API] Get folders/files from Home/Root.

TLDR; It should be possible to get the files or folders from the Root/Home level in the HubSpot File Manager with the search API (already works for sub-levels) for example with the parameters parentId=null or path=“/”.

With the V3 Files search API you are able to get files or folders from a specific folder.

You are however not able (confirmed by HubSpot support) to get files or folders from the Home/Root folder of the File Manager. Meaning as of posting this idea, it is not possible to request the root level, and then continue down to sub-levels. Your only option is to start at a sub-level or to request all the files/folders in the entire HubSpot file manager.

This is needed for a lot of features that need to traverse the files/folder hierarchy. For example, a feature the mirrors the HubSpot web Browse Files feature.

Hey there!

I’m not sure why support was giving that as an answer, but you can in fact search for files/folders in the root. All you need to do is use the `parentFolderId=0`. That will give you all items in the root.

Can anyone point how to get files and folders from root directory?
I’ve tried all the paths but none of them worked till now..