services api key architecture