Api methods return a promise