I believe your problem lies with this sentence in the doc, within the “get multiple portfolios” section:
Returns a list of the portfolios in compact representation that are owned by the current API user
Apparently you can’t list all portfolios you can see in the UI, but only the ones you own UNLESS you have the portfolios id already I suppose and you can get them one by one.