Does Cloudflare guarantee that a particulat ZONE ID wont change?

Just having an internal discussion at the office and tried to search online to determine the uniqueness and permanence of a zone_id but came up short, so opted to ask the question here.

We are automating our interactions with Cloudflare via the API and since we rely heavily and “blindly” on the zone_id, we wanted to ask if Cloudflare guarantee that a particular ZONE ID wont change?

Unless you for some reason remove then re-add the zone, the zone ID is pretty permanent. If you decide you don’t want to rely on the zone ID, you can do a GET zones?name=example.com (reference) and then programmatically get the ID from the first result of the list.

1 Like