Always Authentication error 10000 when using API for getting DNS record ID

Hello! I am using the API for and it always shows me this error. The API Key works, and the email is also right, I don’t know what to do.

My file:
(first line)curl -X GET
https://api.cloudflare.com/client/v4/zones/a8ae714c417b6492276cfbea65aecea4/dns_records?
type=A&name=***.tk” -H “X-Auth-Email: ***@gmail.com” -H “X-Auth-Key: ***” -H “Content-Type:
application/json”
(new line)pause

Is that your Global API Key? And this is on a regular account with just the one user? (not some sort of shared account)

If you paste the command you used (minus the sensitive info), I’ll test it on my account.

No its not the global key, and im trying to get the record id as you said you did it this way in some other posts.

Then it’s probably a permissions issue with the API Token. What settings did you use?

My permissions for this token are DNS:Read, as said in the API docs.

Try: Authorization: Bearer BLAHBLAHKEY
instead of X-Auth-Key

2 Likes

Ayyy :partying_face: it works! Thanks!

1 Like

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