get apiKey in server