ensure presence of client for API key and check for domain