add domain API to documentation