What is the Purge Cache API endpoint and how do I find the correct URL for my zone?

Responsive Ad Header

Question

Grade: Education Subject: Support
What is the Purge Cache API endpoint and how do I find the correct URL for my zone?
Asked by:
83 Viewed 83 Answers

Answer (83)

Best Answer
(394)
The main Purge Cache API endpoint is `https://api.cloudflare.com/client/v4/zones/{zone_id}/purge_cache`. You need to replace `{zone_id}` with the ID of the Cloudflare zone you want to purge the cache for. You can find your zone ID in the Cloudflare dashboard under 'Your Domains' -> click on your domain -> 'Settings' -> 'Zone'. You can also use the Cloudflare API to retrieve zone information.