Get folders structure from API