history api endpoint implemented