api client lib