working client api call