API for domain