CDN

Purge CDN cache

post/cdn/zones/{zone_uuid}/purge-cache

Remove cached copies of your content from every CDN location so the next request fetches a fresh copy from your origin. Purge the whole zone with {"everything": true}, or up to 100 paths with {"paths": [...]}. A path ending in * purges everything under that prefix. Purging usually completes within a minute; follow its progress with the purge history. Each organization can request up to 300 purges per hour, of which at most 60 may purge the whole zone or a prefix.

Authorization

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

zone_uuid*string

Request body

Purge cached content of a CDN zone: either everything, or a list of paths.

Set exactly one of everything or paths. Invalid combinations or paths return 422.

application/jsonRequired
everything?boolean

Purge every cached file of the zone (system and custom domain).

Defaultfalse
paths?array<string>

Paths to purge (max 100, 2048 characters each). Each starts with '/', uses printable ASCII without spaces, quotes or backslashes, and matches with or without query string. A trailing '*' purges every path with that prefix.

Responses

An identical purge is queued and not started yet

application/json

detail*string
purge_uuid*string
status*string
Value in"pending""in_progress""completed""partial""failed""expired"