<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic All properties for a specific company in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/789547#M63678</link>
    <description>&lt;P&gt;I am evaluating the capabilities of HubSpot API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this time I do not see support to request all properties on a specific company...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.../crm/v3/objects/companies/{companyId}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only name and domain (and meta) are served... but if I request explicit properties...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/crm/v3/objects/companies/{companyId}?properties=industry,city,state,zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;... they are on the company.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How am I supposed to know what properties are currently on a specific company?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I to believe I have to include every "potential" property in the whole system in the querystring on every request for each company?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 18:21:53 GMT</pubDate>
    <dc:creator>BBurdette</dc:creator>
    <dc:date>2023-05-03T18:21:53Z</dc:date>
    <item>
      <title>All properties for a specific company</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/789547#M63678</link>
      <description>&lt;P&gt;I am evaluating the capabilities of HubSpot API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this time I do not see support to request all properties on a specific company...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.../crm/v3/objects/companies/{companyId}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only name and domain (and meta) are served... but if I request explicit properties...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/crm/v3/objects/companies/{companyId}?properties=industry,city,state,zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;... they are on the company.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How am I supposed to know what properties are currently on a specific company?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I to believe I have to include every "potential" property in the whole system in the querystring on every request for each company?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 18:21:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/789547#M63678</guid>
      <dc:creator>BBurdette</dc:creator>
      <dc:date>2023-05-03T18:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: All properties for a specific company</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/789779#M63699</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/563179"&gt;@BBurdette&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Based on the HubSpot API documentation, it appears that you can retrieve all the properties for a specific company using the "Get all properties for a Company" endpoint.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The endpoint is:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET /crm/v3/properties/:objectType
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;To retrieve all the properties for a specific company, you would replace :objectType with companies, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET /crm/v3/properties/companies
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This endpoint will return a list of all properties for companies, including the name, data type, and other metadata for each property. You can then use this information to determine which properties are available for a specific company and include those in your query.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Alternatively, you can use the "Get a Company by ID" endpoint with the "includePropertyVersions" parameter set to true. This will return all the properties and their values for the specified company, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET /crm/v3/objects/companies/:companyId?includePropertyVersions=true
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should return all properties and their values for the specified company.&lt;BR /&gt;&lt;SPAN&gt;you may have to use pagination to limit the amount of data returned per request.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 09:56:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/789779#M63699</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2023-05-04T09:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: All properties for a specific company</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/789974#M63717</link>
      <description>&lt;P&gt;Thank you for your response.&amp;nbsp; I am familiar with those endpoints as they led me to post this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These requests have the same response...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GET /crm/v3/objects/companies/:companyId
GET /crm/v3/objects/companies/:companyId?includePropertyVersions=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this request is not for a specific company but for ALL companies... "potential properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GET /crm/v3/properties/companies&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on your response, the only way to describe a specific company's properties in full is to send all "potential property" names in the query.&amp;nbsp; For your demo company: 162 "potential properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GET /crm/v3/objects/companies/:companyId?properties=name,industry,city,state,zip,....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to know the name of the property, if even attached, to view it.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:47:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/789974#M63717</guid>
      <dc:creator>BBurdette</dc:creator>
      <dc:date>2023-05-04T15:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: All properties for a specific company</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/793067#M63956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/563179"&gt;@BBurdette&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You are correct that the default response from the `/crm/v3/objects/companies/{companyId}` endpoint only includes a limited set of properties, including the company name, domain, and metadata. To retrieve all properties on a specific company, you can include the `properties=all` query parameter in your request, like this: ``` /crm/v3/objects/companies/{companyId}?properties=all ``` This will return all properties for the specified company, including any custom properties you may have added to your HubSpot account. Alternatively, if you only want to retrieve a specific set of properties for a company, you can include them in the `properties` query parameter, separated by commas, like this: ``` /crm/v3/objects/companies/{companyId}?properties=industry,city,state,zip ``` Regarding your question about knowing what properties are currently on a specific company, you can retrieve a list of all properties for the Company object using the `/crm/v3/properties` endpoint. This will return metadata about each property, including the property name, label, data type, and other information that can help you determine which properties are available to retrieve for a specific company. It is not necessary to include every potential property in the query string on every request for each company. You can choose which properties you want to retrieve based on your specific use case, and include only those properties in your request.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope his will helps you out. If you find it helpful, please find it as Solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 10:57:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/All-properties-for-a-specific-company/m-p/793067#M63956</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2023-05-12T10:57:38Z</dc:date>
    </item>
  </channel>
</rss>

