add domain to API objects
Merge pull request #1137 from kennknowles/domain-in-api

add domain to API objects