For example, if my app needed to add a new domain name to my application via an API call how would I accomplish that?
AppHarbor has an API that lets you accomplish most management functions including creating hostnames. Documentation is here: