Skip to main content
Home
GrN.dk

Main navigation

  • Articles
  • Cases
  • Services
  • Your Digital Project Manager
  • About Greg Nowak
  • Image Gallery
  • Contact
User account menu
  • Log in

Join my community / free newsletter — sign up here

Breadcrumb

  1. Home

Cloudflare Zombie API Endpoints: How to Retire Them Safely

Illustrated infographic summarizing: Cloudflare Zombie API Endpoints: A Practical Cleanup Plan

By Greg Nowak. Reviewed 28 August 2026.

Cloudflare’s cf-risk-zombie label is useful precisely because it starts a conversation. It is not a delete button.

Cloudflare applies the label when a saved API endpoint has received no traffic for 32 days. Risk scans run every 24 hours. That makes the label a good cleanup signal, but a poor retirement decision on its own. A quiet endpoint may serve a month-end job, seasonal campaign, partner integration, disaster-recovery process or client nobody remembered to ask.

The safe response is to connect technical evidence with business ownership. For agencies, that also means distinguishing changes the agency can implement from retirements the client must authorize.

What Cloudflare has—and has not—proved

The label tells you that Cloudflare has not observed traffic to a saved endpoint during its 32-day window. It does not prove that the origin handler has gone, that deployed software no longer references it or that an external consumer has stopped expecting it.

There is another important distinction: deleting an operation from Cloudflare’s Web Assets inventory is not the same as removing the application route. Deletion stops Cloudflare tracking that operation, and its previous historical metrics cannot be restored. If the handler remains deployed, callers may still reach it unless another security control blocks them.

Evidence What it may mean Recommended decision
cf-risk-zombie only The saved endpoint has been quiet for 32 days. Investigate; do not retire yet.
Quiet in Cloudflare and origin logs The route may be obsolete or extremely infrequent. Check jobs, contracts, code and owners.
Present in OpenAPI but not traffic The specification may lead production—or be stale. Test deployment and reconcile the specification.
Traffic to an unknown operation A live route is missing from the managed inventory. Identify it before considering fallthrough blocking.
Retirement approved Owners agree the route is no longer required. Remove at origin, observe, then clean the inventory.
A zombie label becomes actionable only when it is combined with operational evidence and an accountable owner.

Build an inventory that the business can trust

Use at least three views: Cloudflare’s Web Assets inventory, traffic evidence and the current OpenAPI specification. None should be treated as the sole source of truth.

Cloudflare API Discovery normalizes similar URLs into logical operations and can add candidates to the inventory. However, Discovery has meaningful thresholds: requests must return a 2xx response, and an endpoint needs at least 500 requests within a continuous 10-day period to appear. Worker-originated requests are also excluded from its thresholds. Absence from Discovery therefore says little about low-volume, failing or test-harness traffic.

Normalize operations consistently by HTTP method, hostname and path. For example, record /api/users/{var1} rather than allowing each customer ID to appear as a separate route. Otherwise, the inventory exaggerates the number of endpoints and hides ownership problems inside noisy data.

Give every questionable operation two named owners:

  • A service owner who can inspect code, infrastructure, logs and releases.
  • A business owner who can confirm customer, supplier and internal-process dependencies.

For an agency-run platform, the client-side business owner should approve retirement. The agency can gather evidence and execute the release, but should not silently accept commercial risk on the client’s behalf.

Use a change-controlled retirement workflow

  1. Preserve the evidence first. Record request history, labels, schema status, known consumers and relevant log windows in a ticket. Do this before deleting the operation because Cloudflare’s historical metrics cannot be recovered.
  2. Search outside Cloudflare. Check origin and gateway logs, repositories, scheduled jobs, integration documentation, support records and recent releases. Extend the review window to cover monthly, quarterly and seasonal processes.
  3. Classify the route. Use a small set of outcomes: active, legacy but required, deprecation planned, approved for removal or ownership unknown. “Unknown” is acceptable temporarily, provided it has an owner and review date.
  4. Plan caller behaviour. Decide whether old clients need a replacement route, deprecation response or explicit error. Keep authentication and authorization controls in place throughout the transition.
  5. Retire through the application release process. Disable or remove the origin handler, update the specification and monitor Cloudflare, origin and support events for unexpected callers.
  6. Clean Cloudflare last. Remove the managed operation only after the application change is verified and the audit trail is stored elsewhere.

Move from inventory to enforcement carefully

Once the inventory is credible, it can support stronger controls. Cloudflare’s current Schema Validation 2.0 compares traffic with an uploaded OpenAPI schema and exposes violations through cf.schema_validation.uploaded.violated. The detection does not block requests by itself; mitigation is configured separately with WAF custom rules.

Dashboard uploads can add schema operations automatically. API or Terraform workflows require the operations to be added to Web Assets separately. Missing that step leaves a gap between “schema uploaded” and “operation evaluated.” Cloudflare currently supports OpenAPI 3.0 patch versions, not OpenAPI 3.1, and recommends validating the document before upload.

A fallthrough rule can then match requests that do not correspond to known operations. Cloudflare provides the field cf.api_gateway.fallthrough_detected for custom logic. Scope it narrowly to the intended API hostnames or root paths, inspect representative traffic and account for emergency or infrequent routes before enforcing a block.

Make zombie review part of operations

A one-off cleanup starts decaying as soon as the next deployment lands. Review new operations and risk labels regularly, connect OpenAPI changes to releases, and give every legacy exception an owner and review date.

The goal is not an empty Cloudflare dashboard. It is a smaller, explainable API surface that engineering, operations and the business agree is real.

If your inventory combines forgotten routes, incomplete schemas and unclear client ownership, Greg can help structure the evidence, decisions and rollout so cleanup does not become an avoidable outage.

Related on GrN.dk

  • How to Bulk Delete Cloudflare DNS Records Safely—Without Browser Console JavaScript
  • Cloudflare Page Rules Debt: How Quiet Configuration Drift Breaks Business Websites
  • Cloudflare’s Enforce DNS-Only Switch: Test Your Origin Before an Incident

Need help with this kind of work?

Plan a safe API cleanup with Greg Get in touch with Greg.

Sources

  • Endpoint labeling service
  • Endpoint Management
  • API Discovery
  • Schema validation
Last modified
2026-08-28

Tags

  • Cloudflare
  • API Shield
  • API Security
  • API Operations

Review Greg on Google

Greg Nowak Google Reviews

 

Written recommendations from Trafik og Veje, Aarhus Municipality (2011) and AgroTech (2010) — read them on LinkedIn.

Illustrated infographic summarizing: From Supplier PDFs to Product Data: Where AI Needs a Second Check
From Supplier PDFs to Product Data: Where AI Needs a Second Check
2026-09-07

Supplier files need more than extraction. Here’s how to check coverage, match SKUs, resolve unclear units and prices, and test product data before a catalogue import.

Illustrated infographic summarizing: Shorter TLS Certificates: Will Your Renewal Setup Keep Up?
Shorter TLS Certificates: Will Your Renewal Setup Keep Up?
2026-09-06

Shorter TLS certificates leave less room for renewal problems. Check domain validation, scheduling, deployment and the certificate your customers actually receive.

Illustrated infographic summarizing: Your AI Image Has Content Credentials. Will Your Website Keep Them?
Your AI Image Has Content Credentials. Will Your Website Keep Them?
2026-09-05

AI image credentials can disappear during routine website processing. Learn how to test your CMS, optimizer, CDN, and publishing workflow end to end.

Illustrated infographic summarizing: What Are Customers Asking? Let AI Find the Patterns in Support Tickets
What Are Customers Asking? Let AI Find the Patterns in Support Tickets
2026-09-04

AI-based ticket analysis can uncover recurring complaints, product defects and gaps in documentation—without the company needing yet another chatbot.

Illustrated infographic summarizing: OpenAI Has Machine Identity Now. Which Jobs Should Lose API Keys?
OpenAI Has Machine Identity Now. Which Jobs Should Lose API Keys?
2026-09-03

OpenAI’s X.509 workload identity can replace API keys for the right workloads. This practical framework helps teams decide where to start safely.

Illustrated infographic summarizing: WordPress 7.1 Exposes AI-Ready Actions. Who Gets to Run Them?
WordPress 7.1 Exposes AI-Ready Actions. Who Gets to Run Them?
2026-09-02

WordPress 7.1 helps AI agents discover and invoke site abilities. Here is how to keep exposure, authentication and permission firmly separate.

Illustrated infographic summarizing: From Sales Meeting to CRM: Automate Follow-Up Without Compromising Data Quality
From Sales Meeting to CRM: Automate Follow-Up Without Compromising Data Quality
2026-09-01

How to use AI for meeting notes and follow-up while fixed rules protect CRM data, customer matching and the sales pipeline from errors and premature changes.

Illustrated infographic summarizing: Your AI Gateway Can Name the User. Decide What That Log Is For
Your AI Gateway Can Name the User. Decide What That Log Is For
2026-08-31

Identity-aware AI Gateway logs can sharpen security and cost control, but only when attribution, access, retention, guardrails, and response are clearly defined.

Illustrated infographic summarizing: Zero Data Retention Is a Workflow Audit, Not a Checkbox
Zero Data Retention Is a Workflow Audit, Not a Checkbox
2026-08-30

Zero Data Retention covers the provider, not every copy in your stack. See how to audit endpoints, logs, storage, deletion and project-level controls.

Illustrated infographic summarizing: MCP 2026-07-28 Is an Auth Migration, Not a Version Bump
MCP 2026-07-28 Is an Auth Migration, Not a Version Bump
2026-08-29

MCP’s July 2026 release removes protocol sessions and tightens OAuth. Here’s a practical plan for migrating clients, servers and enterprise access safely.

More articles

Built by AI — available for your business. The daily articles on this site are researched, written and illustrated by an autonomous AI pipeline. At nowa.dk I install the same kind of AI automation in businesses at fixed prices — site in Danish, English version here, and web/marketing agencies have a dedicated page.

RSS feed

Footer

  • All articles
  • Contact

GrN.dk — AI automation, web platforms, web optimization, data handling and logistics.

© 2026 GrN.dk · LinkedIn · Contact · AI automation in Danish: nowa.dk

Behind GrN.dk: Individual Entrepreneur Codecrafter · Tax ID 305669096 · Bakhtrioni St. 22, 0194 Tbilisi, Georgia · official business register