Purge Cache API

I’m just trying to get a basic API call working to purge cache:

curl -X GET “https://api.cloudflare.com/client/v4/zones
-H “X-Auth-Email: @”
-H "X-Auth-Key: "
-H “Authorization: Bearer …”
-H “Content-Type: application/json”

Can anyone point where to get the X-Auth-Key from? Is it the Global API Key?

You cant use both, the key and a token. Which one do you want to use?

1 Like

I see, it worked when I used one header. Thanks!