Cloudflare for SaaS custom domains webhooks for status updates

We are building out an integration with cloudflare for saas custom domains where our users can add their own custom domains through our interface.

We save custom data related to the domain in our database (such as which organisation it belongs to). We also store the current status of the domain from that we get from the "Custom Hostname Details" api call (https://developers.cloudflare.com/api/operations/custom-hostname-for-a-zone-custom-hostname-details).


What would be great is to have a webhook to listen to that triggers when the status of a custom hostname changes, instead of constantly polling it. Also that would help our system to be notified when a domain is changed from active to another status (if the user has changed their dns settings for the domain).

I can only find notifications for SSL cert changes for custom hostnames. Have anyone solved this issue and if so how?
CleanShot_2023-09-07_at_12.38.452x.png
Interact with Cloudflare's products and services via the Cloudflare API
Was this page helpful?