For Workes & Pages, what is the name of the domain?
N/A
What is the error number?
10000
What is the error message?
{ "success": false, "errors": [ { "code": 10000, "message": "Authentication error" } ] }
What is the issue or error you’re encountering
I’m currently trying to list all DNS records for a zone on my Cloudflare account using the API. I believe the API key I’m using has the correct permissions, as it includes access to the following: Zone: Read DNS: Edit When I make the API call to list the DNS records (GET /zones/{zone_identifier}/dns_records) using my custom API token. However, when I switch to using the Global API Key, the same API call works as expected. I’ve double-checked the custom API token’s permissions, and they seem to align with what’s required. Is there something I might be missing in terms of the API token’s configuration, or is additional access required beyond Zone: Read and DNS: Edit? Any help would be greatly appreciated! Thanks in advance!
What steps have you taken to resolve the issue?
curl --request GET \
--url https://api.cloudflare.com/client/v4/zones/{ZONE_ID}/dns_records \
--header 'X-Auth-Email: {EMAIL}' \
--header 'X-Auth-Key: {KEY}'