Is it possible to programmatically set subdomains domains?

I see on Moovweb XDN Documentation - Custom Domains & SSL that you can set custom domains for through the console.

Is it possible to set subdomains for a wildcard cert programmatically via API or config value?

No, you can only set custom domains via the console.