Use get_history() in tools API controller.
Merge 26da838b778c from stable.