Using the administrative dashboard I can obtain an HTML Form Snippet for any profile which I can use to embed in any webpage or context. This is an extremely useful feature.
Is there any way to obtain it programatically, for example using the API or using Drush or some other command or URI foo, so that administrators can change the Profile and the embedded forms will always be updated?