List Zone Rulesets / authentication error

I'm having trouble getting the zone/ruleset/rule ids to make an API call. I have an origin rule I'll be modifying with curl. I have an API token that includes: Origin Rules:Edit, Origin Rules:Read applied to two zones (one in my account, one in someone else's account) Using: curl -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/rulesets" I'm getting code 10000 / "Authentication error". i got the zone ID from the dashboard. what permission do i need to access this endpoint? I can't seem to tell from the docs, let alone what to look for in the dashboard ui to grant it
1 Reply
myndzi
myndzi5mo ago
(i tried adding what seemed to be a more broad Zone:Read permission, which seems to at least permit GET .../zones - confirming the ids)