add history detail APIs