<?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 Re: difference between hs_object_id and id in the get endpoint response in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111608#M80455</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/902796"&gt;@akshayMore&lt;/a&gt;&amp;nbsp;- confusing, isn't it! I am pretty sure you can assume that these examples of 'id' and 'hs_object_id' demonstrate that the record ID values will always be the same - just represented differently due to the history of the API development over time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 21:44:00 GMT</pubDate>
    <dc:creator>SteveHTM</dc:creator>
    <dc:date>2025-02-19T21:44:00Z</dc:date>
    <item>
      <title>difference between hs_object_id and id in the get endpoint response</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111504#M80451</link>
      <description>&lt;P&gt;I am using CRM objects GET API endpoint for example, &lt;A href="https://developers.hubspot.com/docs/reference/api/crm/objects/companies#get-%2Fcrm%2Fv3%2Fobjects%2Fcompanies" target="_blank" rel="noopener"&gt;Retrieve companies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I get a response such:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"results": [&lt;BR /&gt;{&lt;BR /&gt;"archived": false,&lt;BR /&gt;"createdAt": "2023-03-03T11:59:25.795Z",&lt;BR /&gt;"id": "7777",&lt;BR /&gt;"properties": {&lt;BR /&gt;"createdate": "2023-03-03T11:59:25.795Z",&lt;BR /&gt;"domain": "xyz.com",&lt;BR /&gt;"hs_lastmodifieddate": "2023-05-15T12:40:31.237Z",&lt;BR /&gt;"hs_object_id": "7777",&lt;BR /&gt;"name": "xyz"&lt;BR /&gt;},&lt;BR /&gt;"updatedAt": "2023-05-15T12:40:31.237Z"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"archived": false,&lt;BR /&gt;"createdAt": "2023-03-07T12:10:04.817Z",&lt;BR /&gt;"id": "6666",&lt;BR /&gt;"properties": {&lt;BR /&gt;"createdate": "2023-03-07T12:10:04.817Z",&lt;BR /&gt;"domain": "abc.com",&lt;BR /&gt;"hs_lastmodifieddate": "2025-02-04T13:19:43.104Z",&lt;BR /&gt;"hs_object_id": "6666",&lt;BR /&gt;"name": "abc"&lt;BR /&gt;},&lt;BR /&gt;"updatedAt": "2025-02-04T13:19:43.104Z"&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can I assume that id and hs_object_id same always for a given objects such as company, deals, products?&lt;/LI&gt;&lt;LI&gt;Can I also assume&amp;nbsp;createdAt and&amp;nbsp;createdate Same?&lt;/LI&gt;&lt;LI&gt;Similarily, Can I also assume hs_lastmodifieddate and updatedAt Same?&lt;BR /&gt;&lt;BR /&gt;I would like to know how values differ? as far as I can see the data in above keys have same value in my data&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 19 Feb 2025 18:10:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111504#M80451</guid>
      <dc:creator>akshayMore</dc:creator>
      <dc:date>2025-02-19T18:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: difference between hs_object_id and id in the get endpoint response</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111608#M80455</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/902796"&gt;@akshayMore&lt;/a&gt;&amp;nbsp;- confusing, isn't it! I am pretty sure you can assume that these examples of 'id' and 'hs_object_id' demonstrate that the record ID values will always be the same - just represented differently due to the history of the API development over time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 21:44:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111608#M80455</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2025-02-19T21:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: difference between hs_object_id and id in the get endpoint response</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111611#M80456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/902796"&gt;@akshayMore&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In response to your questions (to the best of my knowledge):&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Yes, you can always assume that "id" and "hs_object_id" will be the same value for all object types.&lt;/LI&gt;
&lt;LI&gt;This depends on the object type you're working with. For Contacts and Companies, the value for the "createdate" property and the "createdAt" 'attribute' should be the same, because "createdate" is read-only for these object types. However, the "createdate" property is not read-only for at least some object types, including Tickets, Deals, Products and Line Items. To check whether or not a property is read-only, you can use the &lt;A href="https://developers.hubspot.com/docs/guides/api/crm/properties" target="_blank" rel="noopener"&gt;Properties API&lt;/A&gt; (look for &lt;EM&gt;modificationMetadata.readOnlyValue&lt;/EM&gt;). Note also that there's a separate property on all object types, "hs_createdate". This is always read-only, so it should always match the "createdAt" attribute.&lt;/LI&gt;
&lt;LI&gt;Yes, you can always assume "updatedAt" will match "hs_lastmodifieddate".&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Please note, there may be subtleties that I'm not aware, so please take this with a pinch of salt. Regardless, I hope this proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 21:53:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111611#M80456</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2025-02-19T21:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: difference between hs_object_id and id in the get endpoint response</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111860#M80463</link>
      <description>&lt;P&gt;Thanks a lot for the quick response! helpful!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 11:57:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/difference-between-hs-object-id-and-id-in-the-get-endpoint/m-p/1111860#M80463</guid>
      <dc:creator>akshayMore</dc:creator>
      <dc:date>2025-02-20T11:57:17Z</dc:date>
    </item>
  </channel>
</rss>

