Unknown X-Auth-Key or X-Auth-Email

I’m just trying to get a basic API call working. Copied from (https://api.cloudflare.com/#getting-started-requests):

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

It is returning and error:

{“success”:false,“errors”:[{“code”:9103,“message”:“Unknown X-Auth-Key or X-Auth-Email”}],“messages”:,“result”:null}

I’m using the Global API Key from my account page. Can someone help me identify what I’m doing wrong?


My email address and API key were removed from the example command above. When I run it I include the email address and key associated with my account. Thanks

Error says your credentials are wrong (X-Auth-Key or X-Auth-Email).

Yes. I just noticed the email I used to register with Cloudflare is not the one I thought I had used. Using the correct email works. Sorry for wasting anyone who look at this time!

1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.