API deprecations·续1

Customers and integrations using the legacy domain management endpoints must migrate to the new Registrar API before September 27, 2026 to ensure uninterrupted service. After this date, the legacy endpoints will no longer be available.

2026-05-13

Gateway Audit SSH rules

Deprecation date: November 3, 2025

End of life date: July 15, 2026

The Gateway Audit SSH action for network policies is deprecated and will be fully removed on July 15, 2026. SSH with Access for Infrastructure is the replacement for managing and auditing SSH access.

Creating new Gateway rules with action: "audit_ssh" via the dashboard was disabled in December 2024. Creating new rules via the API and Terraform was disabled on November 3, 2025. Editing existing rules via the dashboard, API, and Terraform was disabled on January 15, 2026. On July 15, 2026, all remaining Audit SSH rules will stop working.

Deprecated APIs:

  • POST /accounts/{account_id}/gateway/rules — creating rules with action: "audit_ssh" is no longer accepted
  • PUT /accounts/{account_id}/gateway/rules/{rule_id} — editing rules with action: "audit_ssh" is no longer accepted

Replacement: SSH with Access for Infrastructure

2026-03-19

Service Key Authentication

Deprecation date: March 19, 2026

End of life date: September 30, 2026

Service Key authentication for the Cloudflare API is deprecated and will be removed on September 30, 2026. API Tokens are capable of providing all functionality of Service Keys, with additional support for fine-grained permission scoping, expiration, and IP address restrictions.

Deprecated behavior:

  • Authenticating API requests using the X-Auth-User-Service-Key header.
  • Generating new Service Keys via the Cloudflare dashboard or API. The ability to generate new Service Keys from the Dashboard will be removed soon.

Replacement:

  • Create an API Token with the appropriate permissions for your use case. API Tokens support fine-grained scoping, expiration, and revocation.

Users of cloudflared should ensure they are running a version from November 2022 or later, which uses API Tokens instead of Service Keys. Users of origin-ca-issuer should update to a version that supports API Token authentication.

2026-01-23

DNS Record Type Updates via API

Deprecation date: January 23, 2026

End of life date: June 30, 2026

Changing the type of an existing DNS record via the API is deprecated and will no longer be supported after June 30, 2026.

Changing a DNS record's type is not a natural update operation and typically also requires changing the record's content. Updates to attributes such as name, TTL, or content are common and safe, but changing the record type introduces additional validation complexity and consistency risks.

To align with correct DNS semantics and reduce operational risk, Cloudflare is deprecating support for in-place DNS record type changes. This behavior already exists in the Terraform v5 provider, where record type changes result in a delete and recreate operation rather than an update.

Deprecated behavior:

Replacement behavior:

DELETE /zones/{zone_id}/dns_records/{dns_record_id}

POST /zones/{zone_id}/dns_records - Use the Batch DNS records API to perform both operations in a single request.

POST /zones/{zone_id}/dns_records/batch

Customers and integrations that rely on in-place record type updates must migrate to a delete-and-recreate workflow before June 30, 2026 to ensure uninterrupted service. After this date, attempts to change a record's type via update operations will no longer be supported.

2025-12-09

Authoritative DNS and DNS Firewall Legacy Analytics

Deprecation date: December 9, 2025

End of life date: December 1, 2026

The following REST APIs are deprecated and will reach their end of life on December 1, 2026.

All existing functionality is fully supported by Cloudflare's GraphQL Analytics API, which provides improved performance, flexibility, and long-term support. Integrations using the REST API need to be migrated to the new GraphQL API before December 1, 2026 in order to ensure uninterrupted service.

Deprecated APIs:

  • GET/zones/{zone_id}/dns_analytics/ (DNS Analytics API)
  • GET/accounts/{account_id}/dns_firewall/{dns_firewall_id}/dns_analytics/report (DNS Firewall Analytics API)

Replacements:

2025-11-11

Zero Trust Devices

End of life date: November 11, 2025

We are changing the definition of Devices. Devices are going to represent the real-world machines while the relation between Users and Devices will be represented by a new concept - Registrations.

As a result multiple fields are moving from Devices to Registrations and we are deprecating the endpoints listed below.

The deprecated endpoints are not supported on accounts with multi-user mode enabled.

Deprecated API:

  • GET /accounts/{account_id}/devices
  • GET /accounts/{account_id}/devices/{device_id}
  • GET /accounts/{account_id}/devices/{device_id}/override_codes
  • POST /accounts/{account_id}/devices/revoke
  • POST /accounts/{account_id}/devices/unrevoke

Replacement:

  • GET /accounts/{account_id}/devices/physical-devices
  • GET /accounts/{account_id}/devices/physical-devices/{device_id}
  • GET /accounts/{account_id}/devices/registrations
  • GET /accounts/{account_id}/devices/registrations/{registration_id}
  • GET /accounts/{account_id}/devices/registrations/{registration_id}/override_codes
  • POST /accounts/{account_id}/devices/registrations/revoke
  • POST /accounts/{account_id}/devices/registrations/unrevoke

2025-11-03

Cloudflare Mirage

Deprecation date: November 2025

End of life date: January 2026

Following on from the deprecation of Cloudflare Mirage, the following API endpoints that manage Mirage settings are now deprecated and will be sunsetted in January 2026.

Deprecated APIs:

  • GET /zones/{zone_id}/settings/mirage
  • PATCH /zones/{zone_id}/settings/mirage

Affected APIs:

  • GET /zones/{zone_id}/pagerules/settings - Mirage will be removed from available settings.
  • POST /zones/{zone_id}/pagerules - Mirage parameter will be removed.
  • PATCH /zones/{zone_id}/pagerules/{rule_id} - Mirage parameter will be removed.
  • PUT /zones/{zone_id}/pagerules/{rule_id} - Mirage parameter will be removed.
  • GET /zones/{zone_id}/rulesets/{ruleset_id} - Mirage parameter in set_config action will be removed.
  • GET /zones/{zone_id}/rulesets/{ruleset_id}/versions/{version_id} - Mirage parameter in set_config action will be removed.
  • POST /zones/{zone_id}/rulesets - Mirage parameter in set_config action will be removed.
  • PUT /zones/{zone_id}/rulesets/{ruleset_id} - Mirage parameter in set_config action will be removed.
  • POST /zones/{zone_id}/rulesets/{ruleset_id}/rules - Mirage parameter in set_config action will be removed.
  • PATCH /zones/{zone_id}/rulesets/{ruleset_id}/rules/{rule_id} - Mirage parameter in set_config action will be removed.
  • GET /accounts/{account_id}/rulesets/{ruleset_id} - Mirage parameter in set_config action will be removed.
  • GET /accounts/{account_id}/rulesets/{ruleset_id}/versions/{version_id} - Mirage parameter in set_config action will be removed.
  • POST /accounts/{account_id}/rulesets - Mirage parameter in set_config action will be removed.
  • PUT /accounts/{account_id}/rulesets/{ruleset_id} - Mirage parameter in set_config action will be removed.
  • POST /accounts/{account_id}/rulesets/{ruleset_id}/rules - Mirage parameter in set_config action will be removed.
  • PATCH /accounts/{account_id}/rulesets/{ruleset_id}/rules/{rule_id} - Mirage parameter in set_config action will be removed.

2025-10-15

Cloudflare Radar: Summary and Timeseries Groups Endpoints

Deprecation date: October 15, 2025

End of life date: April 15, 2026

The Radar API currently has multiple summary and timeseries groups endpoints per dataset (for example, /radar/http/summary/device_type and /radar/http/timeseries_groups/device_type), which share nearly identical parameters and schema. To simplify the API and improve maintainability, these endpoints will be replaced with parameterized endpoints using a {dimension} path parameter.

Deprecated APIs:

  • GET /radar/http/summary/device_type
  • GET /radar/http/summary/bot_class
  • GET /radar/http/timeseries_groups/device_type
  • GET /radar/http/timeseries_groups/bot_class
  • Other similar summary and timeseries groups endpoints for the following datasets: AI Bots, AI Inference, AS112, DNS, Email Routing, Email security, HTTP, Layer 3 Attacks, Layer 7 Attacks, Leaked Credential Checks

Replacements:

  • GET /radar/http/summary/{dimension}
  • GET /radar/http/timeseries_groups/{dimension}
  • ...

Here, {dimension} is a required path parameter listing all available dimensions for the dataset.

For users calling the API directly (not via the Cloudflare SDK), no action is required. For users using the SDK, we recommend updating to the new operations to ensure compatibility after the operations are removed.

2025-07-01

Cloudflare Radar: Verified Bots APIs

Deprecation date: July 1, 2025

End of life date: January 1, 2026

The Radar Verified Bots API is now deprecated and will be replaced by the new Bots API.

Deprecated APIs:

  • GET /radar/verified_bots/top/bots
  • GET /radar/verified_bots/top/categories

Replacements:

  • GET /radar/bots/summary/bot
  • GET /radar/bots/summary/category

2025-07-01

Cloudflare DWeb Resolver

Deprecation date: July 1, 2025

The Cloudflare DWeb Resolver experiment is ending.

Deprecated APIs:

  • DoH resolver on resolver.cloudflare-eth.com

2025-06-15

Firewall Rules API and Filters API

Deprecation date: June 15, 2025

The Firewall Rules API and the Filters API are deprecated, since Firewall Rules was deprecated in favor of WAF custom rules. Refer to Firewall Rules upgrade for more information about this change.

Deprecated APIs:

  • GET /zones/:zone_id/firewall/rules
  • POST /zones/:zone_id/firewall/rules
  • PATCH /zones/:zone_id/firewall/rules
  • PUT /zones/:zone_id/firewall/rules
  • DELETE /zones/:zone_id/firewall/rules
  • GET /zones/:zone_id/firewall/rules/:rule_id
  • PATCH /zones/:zone_id/firewall/rules/:rule_id
  • PUT /zones/:zone_id/firewall/rules/:rule_id
  • DELETE /zones/:zone_id/firewall/rules/:rule_id
  • GET /zones/:zone_id/filters
  • POST /zones/:zone_id/filters
  • PUT /zones/:zone_id/filters
  • DELETE /zones/:zone_id/filters
  • GET /zones/:zone_id/filters/:filter_id
  • PUT /zones/:zone_id/filters/:filter_id
  • DELETE /zones/:zone_id/filters/:filter_id

Replacement: WAF custom rules

2025-06-15

WAF managed rules APIs (previous version)

Deprecation date: June 15, 2025

The APIs for managing WAF managed rules (previous version) — namely for managing packages, rule groups, rules, and overrides — are deprecated in favor of using the Rulesets API for managing the new version of WAF Managed Rules. Refer to WAF Managed Rules upgrade for more information about this change.

Deprecated APIs:

  • GET /zones/:zone_id/firewall/waf/packages
  • GET /zones/:zone_id/firewall/waf/packages/:package_id
  • PATCH /zones/:zone_id/firewall/waf/packages/:package_id
  • GET /zones/:zone_id/firewall/waf/packages/:package_id/groups
  • GET /zones/:zone_id/firewall/waf/packages/:package_id/groups/:group_id
  • PATCH /zones/:zone_id/firewall/waf/packages/:package_id/groups/:group_id
  • GET /zones/:zone_id/firewall/waf/packages/:package_id/rules
  • GET /zones/:zone_id/firewall/waf/packages/:package_id/rules/:rule_id
  • PATCH /zones/:zone_id/firewall/waf/packages/:package_id/rules/:rule_id
  • GET /zones/:zone_id/firewall/waf/overrides
  • POST /zones/:zone_id/firewall/waf/overrides
  • GET /zones/:zone_id/firewall/waf/overrides/:override_id
  • PUT /zones/:zone_id/firewall/waf/overrides/:override_id
  • DELETE /zones/:zone_id/firewall/waf/overrides/:override_id