R2 Wrangler/API attach custom domain

Hi,

Is it possible to attach a custom domain to an R2 bucket using wrangler or the Cloudflare API?

Or even any other method that can be automated?

Many Thanks

You can open DevTools & copy the network requests that are made when you add a custom domain in the dashboard but otherwise it isn’t a documented API.

Is that how Cloudflare API’s are first released before becoming a more formal public API?

It might never become public, unless it does.

It being and existing on the Dashboard doesn’t automatically make it a public API candidate (it might, and probably will, use a different endpoint altogether).