add histories api for company.