add domain to API objects