addint API to retrieve all sessions