Cloudflare
Purge the Cloudflare cache, or just some URLs
POST
Permission: domains.manage
apiTokenheader
AuthorizationBearer <token>An API token (mwp_…) from Settings → API tokens. Only accepted on this host.
site_id*Site IdFormat
uuidapplication/json- body
Empty (or omitted) purges everything. urls purges just those.
Paths, not absolute URLs: the host is this site's own domain, resolved server-side. A customer cannot purge a URL on a zone they happen to share with someone else, and nobody has to think about http vs https or a trailing slash.
urls?array<string>Items
items <= 30Successful Response
application/json- response
success*booleandata*The result; on an error, details such as code and permission.
message*stringstatus_code*integertimestamp*stringFormat
date-timemeta?|nullcurl -X POST "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/cloudflare/purge" \ -H "Content-Type: application/json" \ -d '{}'{ "message": "string", "status_code": 0, "timestamp": "2019-08-24T14:15:22Z", "meta": {}, "success": true, "data": { "purged": true, "urls": [ "string" ] }}