This command format works:
curl -s -X GET "https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules?configuration.target=ip&configuration.value=$IP" -H "X-Auth-Email: $CLOUDFLARE_EMAIL" -H "X-Auth-Key: $CLOUDFLARE_API_KEY" -H "Content-Type: application/json"