Cannot get Authentication working for load_balancers endpoint

I am able to call zones and dns fine but cannot get load balancer API calls to work

curl --location 'https://api.cloudflare.com/client/v4/user/load_balancers/pools' --header 'Authorization: Bearer xxxxxxx' 
{"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}

I have granted Account permission ‘Load Balancing: Monitors And Pools’ as Edit. What could I be missing?

Got an answer back from support:

Please use the following API call. You are currently using the user endpoint which is not where your loadbalancers are configured

https://developers.cloudflare.com/api/operations/account-load-balancer-pools-list-pools

In short I was calling
https://api.cloudflare.com/client/v4/user/load_balancers/pools
instead of
https://api.cloudflare.com/client/v4/accounts/{account_identifier}/load_balancers/pools

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.