Managing a redirect list using API

Hi all,

Does anyone know if it’s possible to manage an account redirect list via the Cloudflare API?

I’ve got about 2,500 redirects that I’d like to bulk upload but the admin interface makes it hard work to mass-delete the ones already there. Ideally I’d like to use the API to create an update job/script that:

  • Removes everything already there
  • Uploads the new list of redirects

Any help or suggestions would be appreciated.


I believe it’s possible to do what you want with a single API request, please see the documentation for details: