Thought I’d come back with the answer half a year later. Property for a company is called
hs_merged_object_ids
I found the list of this property by querying https://api.hubapi.com/crm/v3/properties/company#
I assume there is a contact equivalent you can request.
These APIs contain the full list including hidden properties you can’t find through the Hubspot UI (settings->properties)