get all sessions API implemented