We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jul 29, 2020 12:34 PM
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é
Solved! Go to Solution.
Jul 30, 2020 5:31 PM
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.
Jul 30, 2020 5:31 PM
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.
Jul 31, 2020 8:19 AM
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é
Jul 31, 2020 2:11 PM
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.