How do I bind my domain via API?

We make a product where users can build sites with a mouse. As a result, we get html pages. We would like to upload them to netlify. The uploads are working well now!

How do I connect user domains using the API? We need the user in our interface to enter his domain and we connect him to a site on netlify.

hi there,

this thread is a great starting point.