Simple API request failing

First time working with the cf rest api and some simple api request to purge the cache of a zone if not working and cant figure out why. This is my request:
curl --request POST \
--url https://api.cloudflare.com/client/v4/zones/zoneid/purge_cache \
--header 'Content-Type: application/json' \
--header 'X-Auth-Email: [email protected]' \
--header 'X-Auth-Key: key' \
--data '{"purge_everything": true}'
{"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}
curl --request POST \
--url https://api.cloudflare.com/client/v4/zones/zoneid/purge_cache \
--header 'Content-Type: application/json' \
--header 'X-Auth-Email: [email protected]' \
--header 'X-Auth-Key: key' \
--data '{"purge_everything": true}'
{"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}
The api key has this config:
No description
1 Reply
SageSphinx63920
SageSphinx63920OP5mo ago
Thanks Its not working ❤️
Want results from more Discord servers?
Add your server