It's easy to get duplicate companies into the system via the API, and trying to fix hundreds and thousands of them via the half dozen or so UI steps and intermediate page loads it takes to search for and click to merge (as described here: https://knowledge.hubspot.com/articles/kcs_article/companies/how-do-i-merge-companies) is not feasible as a solution to clean things up.
I'm not aware of any plans to make a public company merge endpoint, but I'd be happy to pass that feedback along internally. Just a reminder; if we created a company merge endpoint, it'd be on the public api.hubapi.com domain. Internal services used for the app are hosted on api.hubspot.com and are not supported for external use.
What's the likelihood of publishing the underlying API you're using to make the company merges? We're looking to merge around ~3500 duplicate companies and would rather not do so by hand
It looks like you're POSTing to companies/v2/companies/:company_id/merge with {"companyIdToMerge":1234}. But if I try it I get a 405 Method Not Allowed. Damn.
I tried your support first which suggested to write here and so I relay their idea: