client for api server