Network
Purge Cache
Purges the cache for an application’s subdomain or custom domains, optionally for specific paths.
POST
Purge Cache
The hostnames to purge. Optional — omit it (an empty body is fine) and every hostname the
application owns is purged, which is what a plain “purge this app’s cache” wants. When you do send
it, each entry must be one of the application’s own hostnames: its
subdomain, already a full
host (myapp.vertraweb.app — do not append the zone again), or the hostname of one of its custom domains.
Anything else is rejected with INVALID_HOSTNAME_FOR_APP.An optional array of full URLs to purge (e.g.,
["https://example.com/path1", "https://example.com/path2"]).
URLs whose host is not among the hostnames being purged are dropped; if nothing is left the
request fails with NO_AUTHORIZED_PATHS. If omitted, everything under each hostname is purged.Response
A success returns200 with { "response": null }.
Error Responses
The error code indicating the reason for failure. Possible values:
VALIDATION_ERROR: The path parameter or the body failed validation (400). The response also carriesmessageanddetails.path.AUTH_TOKEN_MISSING,API_KEY_INVALID,SESSION_REVOKED: TheAuthorizationheader is missing, the API key is invalid, or the dashboard session was revoked (401).API_KEY_IP_DENIED,API_KEY_SCOPE_DENIED: The API key is used from an IP outside its allowlist, or it lacks the scope the route requires (403).USER_NOT_FOUND: The authenticated user could not be resolved (401).ACCESS_DENIED: You are a workspace member without the permission for this action, or you did not send theworkspace_id(403).INVALID_HOSTNAME_FOR_APP: One of thehostnamesdoes not belong to the application (403).APP_NOT_FOUND: The specified application was not found (404).APP_NOT_PUBLISHED: The application has no subdomain and no custom domain, so it has no edge cache to purge (400).NO_AUTHORIZED_PATHS: None of the providedpathsbelong to the given hostnames (400).INTERNAL_SERVER_ERROR: The CDN rejected the purge, or an unexpected failure occurred (500).
This route has its own budget of 10 requests per minute. See Rate Limiting.
Last modified on November 24, 2026