@Teun
I started this thread, and to output all properties is exceptionally verbose, especially if the object type is “companies.”
Object request: Return ALL properties
I wish to pull back and request return of only defined properties.
Examples…
- HubSpot defined (ex: “hs_object_id”) and Client defined (ex. “name”).
- Client defined (ex. “name”)
I appreciate v2 suggestion. Not yet deprecated, but not worth considering w/ expecation of being deprecated.
Thank you
Hey, @jeff00seattle
I’ll take on the HubSpot-specific questions here. A big thanks to @Teun for taking the time to offer one workaround 
Housekeeping details — please refrain from starting multiple posts for the same topic. This helps keep the community stay organized and well run.
To your questions and comments:
- It would be better to have a key word (example “properties=all"): “/crm/v3/objects/companies?archived=false&limit=10&properties=all" — I agree, and this is not an option.
- Teun’s suggestion on cacheing the response is like the most optimal, and I understand it’s not possible
- Their other suggestion is valid as well. The endpoint Get a company by ID is stable, supported, and not flagged for any changes.
I think the term “depreciated” in this case is a bit of a red herring. Unless something specifically labelled, either in its documentation or in the HubSpot Developer Changelog, as upcoming or breaking changes, there is no reason to assume it will not continue to be supported and stable. This applies to all of our v1 and Legacy endpoints.
From the Legacy API documentation:
“…our older endpoints are still stable and supported.”
and
“Some older APIs don’t have an updated counterpart yet.”
In this case, a compromise of some sort will be made. There is not an all-in-one endpoint that meets your specific requirements.
Additionally, depending on how you need to make your queries, the Search API may offer an option. You can add the properties in the request body and not to the request URL.
Myself, @Teun, and our community members are happy to help troubleshoot using the available options and limitations.
Talk soon. — Jaycee