If you look into Raindrop UI you will notice a sidebar in left corner, where collections are located. Collections itself divided by groups. Groups useful to create separate sets of collections, for example "Home", "Work", etc.
Groupsarray is a single place where user root collection list and order is persisted. Why just not to save order position inside collection item itself? Because collections can be shared and they group and order can vary from user to user.
So to fully recreate sidebar like in our app you need to make 3 separate API calls (sorry, will be improved in future API updates):
groupsarray with exact collection ID's. Typically this array looks like this:
Collection ID's listed below is just first level of collections structure! To create full tree of nested collections you need to get child items separately.
To get name, count, icon and other info about collections, make those two separate calls:
Sort order of root collections persisted in
Sort order of child collections persisted in collection itself in