Save api key as well.