Update how api keys are returned and saved in examples