Update api key endpoint to accept oauth token