API to add custom domains or wildcard subdomains

I use glitch for a project where I often need to add subdomains for a domain. It would be awesome if I could just set up a wildcard subdomain and it would all connect to the Glitch project. If that’s not possible, it would be useful to have an API to add custom domains so I can directly add them from Discord instead of opening Glitch and adding the domain (also it currently makes you reload for every domain).