Changing key api code