What are the different scopes available when creating a Cloudflare Purge Cache API token, and which is required for purging?

Responsive Ad Header

Question

Grade: Education Subject: Support
What are the different scopes available when creating a Cloudflare Purge Cache API token, and which is required for purging?
Asked by:
124 Viewed 124 Answers

Answer (124)

Best Answer
(315)
The primary scope for purging the cache is 'Edit'. This scope allows the token to modify cached files. Other scopes like 'Delete' (for deleting files) or 'Read' (for reading files) might be available but aren't needed for basic cache purging. Using the least privileged scope possible is a security best practice.