HistoryController for API