<?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: Get Owner of a Contact by Contact API Endpoint. in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/517376#M48170</link>
    <description>&lt;P&gt;Thank you for your answer&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;.&amp;nbsp;I would just like to filter the API call by some timestamp in order to don't have to bulk all the data every time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having the infrastructure to deal with a Webhook is a bit more complex, but if this is the best practices you recommend. I can work on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will wait&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/152955"&gt;@zaklein&lt;/a&gt;&amp;nbsp;answer as well.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 14:31:45 GMT</pubDate>
    <dc:creator>HOrdonez</dc:creator>
    <dc:date>2021-10-28T14:31:45Z</dc:date>
    <item>
      <title>Get Owner of a Contact by Contact API Endpoint.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/513658#M47929</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if it is possible to obtain the owner of a contact by calling the contacts API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;client.crm.contacts.basic_api.get_page()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw in the past you could by adding "&lt;SPAN&gt;hubspot_owner_id" into properties, some people recommended to cross Apis with Owner, but I couldn't find a clear way either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if there is any way to get the list of properties that I can add to the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 10:26:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/513658#M47929</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-10-21T10:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Owner of a Contact by Contact API Endpoint.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/514441#M47976</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267453"&gt;@HOrdonez&lt;/a&gt; , you can hit the &lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank" rel="noopener"&gt;properties endpoint&lt;/A&gt; to get all of the available properties for an object&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:42:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/514441#M47976</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-10-22T14:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Owner of a Contact by Contact API Endpoint.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/515990#M48076</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;.&amp;nbsp;Really useful the property feature.&lt;/P&gt;&lt;P&gt;Do you know if it's possible to filter contacts by modification date, it doesn't appear here:&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/search&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if there is other way to do it?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 12:58:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/515990#M48076</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-10-26T12:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get Owner of a Contact by Contact API Endpoint.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/516860#M48149</link>
      <description>&lt;P&gt;It might be worth looking at &lt;A href="https://developers.hubspot.com/docs/api/webhooks" target="_blank" rel="noopener"&gt;webhooks&lt;/A&gt; which can watch for changes of properties&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/152955"&gt;@zaklein&lt;/a&gt; , what would you do?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 18:01:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/516860#M48149</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-10-27T18:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get Owner of a Contact by Contact API Endpoint.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/517376#M48170</link>
      <description>&lt;P&gt;Thank you for your answer&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;.&amp;nbsp;I would just like to filter the API call by some timestamp in order to don't have to bulk all the data every time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having the infrastructure to deal with a Webhook is a bit more complex, but if this is the best practices you recommend. I can work on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will wait&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/152955"&gt;@zaklein&lt;/a&gt;&amp;nbsp;answer as well.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 14:31:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/517376#M48170</guid>
      <dc:creator>HOrdonez</dc:creator>
      <dc:date>2021-10-28T14:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get Owner of a Contact by Contact API Endpoint.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/517910#M48205</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267453"&gt;@HOrdonez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relating to your original question --&amp;gt; yes, you can retrieve information about the owner of a Contact record, using the Contact API. For example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET
https://api.hubapi.com/crm/v3/objects/CONTACT/{{CONTACT_ID}}?properties=hubspot_owner_id,hubspot_owner_assigneddate,hubspot_team_id&amp;amp;hapikey={{HAPIKEY}}

Example Response Body:
{
    "id": {{CONTACT_ID}},
    "properties": {
        "createdate": "2019-01-30T12:55:07.451Z",
        "hs_object_id": {{CONTACT_ID}},
        "hubspot_owner_assigneddate": "2021-08-26T14:30:29.555Z",
        "hubspot_owner_id": {{CONTACT_OWNER_ID}},
        "hubspot_team_id": {{CONTACT_OWNER_TEAM_ID}},
        "lastmodifieddate": "2021-10-28T16:12:15.677Z"
    },
    "createdAt": "2019-01-30T12:55:07.451Z",
    "updatedAt": "2021-10-28T16:12:15.677Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;Likewise, specific property values can be retrieved when requesting lists or batches of Contacts via the API.&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;mentioned, you can use the &lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank" rel="noopener"&gt;Get All Properties endpoint&lt;/A&gt; to inspect all available properties relevant to record ownership. Here are some I found that might be of interest (descriptions for each can be found in the API response):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;hubspot_owner_id&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;hubspot_owner_assigneddate&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;hs_all_owner_ids&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;hs_user_ids_of_all_owners&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;hubspot_team_id&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;hs_all_team_ids&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;owneremail&amp;nbsp;&amp;nbsp;&lt;EM&gt;(marked as legacy, returned &lt;STRONG&gt;null&lt;/STRONG&gt; for me)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;ownername&amp;nbsp; &lt;EM&gt;(marked as legacy, returned &lt;STRONG&gt;null&lt;/STRONG&gt; for me)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Relating to your follow up question in this thread --&amp;gt; yes, it is possible to use the CRM Search API endpoint to retrieve a list of Contact records based on when they were last modified. For example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;POST
https://api.hubapi.com/crm/v3/objects/CONTACT/search?hapikey={{HAPIKEY}}

Request Body (JSON):
{
    "limit": 5,
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "lastmodifieddate",
                    "operator": "GTE",
                    "value": "1635435000000"
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;For anyone not overly familiar with the CRM Search API --&amp;gt; "GTE" is the endpoint's&amp;nbsp;&lt;EM&gt;"greater than or equal to"&lt;/EM&gt; operator, and "1635435000000" reflects the example target datetime in Unix epoch time (milliseconds). I generally use &lt;STRONG&gt;&lt;A href="https://www.epochconverter.com/" target="_blank" rel="noopener"&gt;EpochConverter&lt;/A&gt;&lt;/STRONG&gt; for generating test timestamps like this.&lt;/P&gt;
&lt;P&gt;Finally, the Contact property being searched on in the above example is "&lt;STRONG&gt;lastmodifieddate&lt;/STRONG&gt;", not to be confused with "hs_lastmodifieddate". The latter is a hidden property which, based on some very quick testing, cannot be used within CRM Search API filters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;All the best,&lt;/P&gt;
&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 09:44:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Owner-of-a-Contact-by-Contact-API-Endpoint/m-p/517910#M48205</guid>
      <dc:creator>zaklein</dc:creator>
      <dc:date>2021-10-29T09:44:37Z</dc:date>
    </item>
  </channel>
</rss>

