pass api key to client