If you do a GET for the root group using /process-groups/{id} then that response will have all the other process groups under it, you can look at the ProcessGroupEntity example JSON response, and then component -> contents -> processGroups or processors. The root group id won't change so that should be your starting point.