Okapi Okapi

Cloudflare API GET /zones/:zone_id/settings/cname_flattening endpoint removal

Stopped workingSubscribe to Cloudflare APIShare

On June 8, 2025, Cloudflare removed the GET /zones/:zone_id/settings/cname_flattening endpoint. Requests sent to this endpoint after this date fail.


Calls it hits

  • GET /zones/:zone_id/settings/cname_flattening

What to use instead of these calls

Use Show DNS Settings instead.

In Cloudflare API's words

GET /zones/:zone_id/settings/cname_flattening

Cloudflare API, Changelog

Facts

API
Cloudflare API api.cloudflare.com
Kind
Endpoint removal
Announced
June 8, 2025
Takes effect
June 8, 2025
Calls after that day
Fail
Source
Changelog
Last updated
Verified
, against Cloudflare API's own pages

Questions

When does this change take effect?

Calls to GET /zones/:zone_id/settings/cname_flattening on Cloudflare API stopped working on June 8, 2025.

What happens to calls after June 8, 2025?

They have failed since June 8, 2025.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from Cloudflare API 10

  1. GET /zones/:zone_id/firewall/waf/packages/:package_id/rules/:rule_idEndpoint removal Stopped working
  2. GET /radar/attacks/layer3/top/industryEndpoint removal Stopped working
  3. GET /radar/attacks/layer3/top/verticalEndpoint removal Stopped working
  4. GET /radar/attacks/layer7/top/industryEndpoint removal Stopped working
  5. GET /radar/attacks/layer7/top/verticalEndpoint removal Stopped working
  6. GET /accounts/{id}/devicesEndpoint removal Stopped working
  7. GET /accounts/{id}/devices/{id}Endpoint removal Stopped working
  8. GET /accounts/{id}/devices/{id}/override_codesEndpoint removal Stopped working
  9. POST /accounts/{id}/devices/revokeEndpoint removal Stopped working
  10. POST /accounts/{id}/devices/unrevokeEndpoint removal Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub

Get notifications

Subscribe to Cloudflare API

Hear about each breaking change Cloudflare API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Cloudflare API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.