Changed terminology apiKey to appId