amzweb: add histories API