APIs & Integrations

AndréBarbosa
参加者

API - get companies with all available properties

解決

Good day,

 

I was wondering if there's a way to get all available properties when requesting companies via the basic GET endpoint at https://developers.hubspot.com/docs/api/crm/companies?_ga=2.31064380.2041416945.1596028023-120274040... ;

 

I understand there's a list of default properties at https://knowledge.hubspot.com/companies/hubspot-crm-default-company-properties?_ga=2.64770156.213380... but this documention does not seem to contain the keys to access the respective properties;

 

For instance, if I want to get the "About us" field, I need to request the property in snake case ('about_us');

 

The same does not apply to Annual Revenue which I cannot seem to able to fetch from the GET endpoint despite multiple attempts.

Further information on the possible / available properties would be appreciated.

 

Best Regards,

André 

0 いいね!
1件の承認済みベストアンサー
Derek_Gervais
解決策
元HubSpot社員
元HubSpot社員

API - get companies with all available properties

解決

Hi @AndréBarbosa ,

 

You can use the Company Properties API to pull all of the company properties in your HubSpot account. The property definitions here will include the internal property name that you're referring to, as well as various other metadata.

元の投稿で解決策を見る

3件の返信
Derek_Gervais
解決策
元HubSpot社員
元HubSpot社員

API - get companies with all available properties

解決

Hi @AndréBarbosa ,

 

You can use the Company Properties API to pull all of the company properties in your HubSpot account. The property definitions here will include the internal property name that you're referring to, as well as various other metadata.

AndréBarbosa
参加者

API - get companies with all available properties

解決

Hi @Derek_Gervais ,

 

I had assumed the legacy docs were refering to a older / deprecated API, being v1 as opposed to v3, but it seems to return all the needed keys. Thanks for the swift reply.

 

Best regards,

André

0 いいね!
Derek_Gervais
元HubSpot社員
元HubSpot社員

API - get companies with all available properties

解決

Hey @AndréBarbosa ,

 

Totally understandable. "Legacy" is a bit of a misnomer: These are the 'current' version docs, and the new API documentation is the 'next' version. We'll deprecate the old docs once all v3 API functionality is fully released. Stay tuned to the Changelog for more information.

0 いいね!