Improved API key and host attributes for client