Resetting the default credentials and generating an API key