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

#1

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?

Thanks,
Evan

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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