API Support for custom domains on Cloudflare pages

I personally would love to see an endpoint added to the Cloudflare Pages API that allows for creation of custom domains programmatically.

As referenced here I would like to be able to point my users domains to a cloudflare pages project and serve content based on the domain provided.

Besides my own personal needs, I think this could be a useful feature for other people who automate portions of cloudflare pages.

Edit- Render is now offering a solution to this in their early access api. Custom domains can be added to their static sites-- https://apidocs.preview.render.com/. Would love to see a cloudflare option just like this but for pages.