cURL Node.js Python Go
# Purge cache for specific URLs
curl -X POST https://api.stoniescdn.com/v1/zones/example.com/purge \
  -H "Authorization: Bearer $STONIES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/styles.css", "https://example.com/app.js"]}'

# Response
{
  "success": true,
  "result": { "purged": 2 }
}

Need help?

Our support team is available 24/7 to help you succeed.

Contact Support