Enterprise from Companies API Call

Hi,
I’m trying to call the following URL as an API call in PowerBI for Companies, and include the Enterprise flag:
https://api.hubapi.com/crm/v3/objects/companies?limit=100&properties=HS_enterprise

While it returns data, it’s not includeing the enterprise column. Is this reportable?
Just read Tip 2 in this: https://community.hubspot.com/t5/CRM/5-Handy-Tips-when-Importing-Contacts-amp-Companies/m-p/348826
And does’t look as though that field is standard.

Hi @AWatson37 :waving_hand:

“HS_enterprise” is not a standard HubSpot Company Property. Generally speaking, “hs” at the start of API property names is reserved to those created by HubSpot. Where did you find this property name?

You might like to consider first using the HubSpot Properties API to find out all the Company Properties available to you, relevant to the given HubSpot Portal. For example:

GET https://api.hubapi.com/crm/v3/properties/**company**

Headers

  • Accept: application/json
  • Authorization: Bearer {YOUR_ACCESS_TOKEN}

I hope this proves useful. Please let me know if you have any follow-up questions.

Thanks @zach_threadint . I inherrited something from another developer and their API call included the below, so sorry, it wasn’t HS_ent…
https://api.hubapi.com/companies/v2/companies/…properties=enterprise…
the … means there were bits before and after but just other properties.
They were using middleware so are we saying from a standard API call, enterprise cannot be called?

Hi @AWatson37 :waving_hand:

Can you please include the full request endpoint URL? I’m just interested to see the full list of properties and how the URL is formed in general.

“enterprise” is not a standard HubSpot Company Property. It could be a custom Company Property that exists within the HubSpot Account you’re using. However, given you say you don’t see it returned in the response, I’m guessing it no longer exists. To confirm whether that’s true, you can check out the HubSpot Properties API mentioned in my previous message.

I hope this proves useful. Please let me know if you have any follow-up questions.

Ah, wait… just spotted my call has hs_enterprise, the one via middleware does not. Just run it again without and it’s working.
Chalk that up to user error, but thanks Zach!