REST api flows