Add api to access client