And it returns empty result, but I’m 100% there is a redirect rule set on this domain.
Also, I have other domain with a redirect rule set on the same cloudflare account, but it works fine and apu returrns the correct result.
Page Rules can do redirects, but there are also “Redirect Rules” so check you haven’t confused the two and are looking in the wrong place. Check in the dashboard to be sure, then try the API.
Yes thank you, I see that some websites have redirect rules and some of them page rules.
But now I have a problem that api does not work for redirect rules, and it’s always returning authentication error otherwise redirect rules work fine.
I tried to google the correct permissions and the only thing I found that you have to allow Rulesets: edit for zones, but as I see there is no such permisions in cloudflare api