Hi @hstk have you tried building out this report (with the formatting) in Workspace? There is a trick that you may or many not know about....
Under the help menu, you can enable Debugging.... this will show a new icon on each visualization that will show timestamps of all the API calls used to build the data, each of these is clickable and will take you to a page that shows you the API call in multiple formats.
This can be a great way to start with a base API call that you can tweak afterwards. But since I know you can build the format you mentioned in Workspace, these debug API calls should allow you to replicate the data format as you would like to see it.