doc client api