Exhaustive list of custom properties

I recently started to work with the Hubspot API to populate internal DB with the Hubspot data. And came across the concept of custom properties through properties option (specified in API calls).

My objective is to fetch all the properties that exist in Hubspot–default as well as custom. Though at this point I do not know all the custom properties that I could include in the properties option.

Is there a way to GET a list of all the custom property names that exist, say for companies?

Hi @niraj,

I hope all is well with you :grinning_face_with_smiling_eyes:

When looking to get the companies properties, you can use this endpoint here: Get all Company Properties | Company Properties API. This endpoint will return all the custom and default companies properties within the HubSpot portal.

If the property is defined by HubSpot, the property hubspotDefined will have a value true.

You can also refer to this documentation to learn more about the default companies properties that HubSpot provide: HubSpot’s default company properties.

Hope this helps to clarify things!