cosmo rest client