<?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 Get recently deleted contacts/companies in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/288316#M26684</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get recently deleted contacts/companies using the REST API?&lt;/P&gt;&lt;P&gt;On "Get recently modified and created companies/contacts" there's an "isDeleted" filed, but seems to me it returns only isDeleted = false records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dor&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 16:22:19 GMT</pubDate>
    <dc:creator>Dor</dc:creator>
    <dc:date>2019-08-27T16:22:19Z</dc:date>
    <item>
      <title>Get recently deleted contacts/companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/288316#M26684</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get recently deleted contacts/companies using the REST API?&lt;/P&gt;&lt;P&gt;On "Get recently modified and created companies/contacts" there's an "isDeleted" filed, but seems to me it returns only isDeleted = false records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dor&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 16:22:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/288316#M26684</guid>
      <dc:creator>Dor</dc:creator>
      <dc:date>2019-08-27T16:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get recently deleted contacts/companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/288392#M26698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103686"&gt;@Dor&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope all is well with you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a great question! And as per what Derek mentioned on a similar forum discussion&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Restoring-recently-deleted-contacts/td-p/228567" target="_self"&gt;here&lt;/A&gt;: Getting recently deleted contacts/companies is currently not possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, just to make sure that we're on same page, when using the &lt;A href="https://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts" target="_self"&gt;get recently updated and created contacts&lt;/A&gt; endpoint, I'm not seeing any isDeleted field. In this case, do you mind sharing with me the request url and response body that you're getting back from the endpoint?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having said that, one other way here that you can keep track of deleted contacts/companies is to set up a webhook subscription and for this I'd love to share with you this documentation here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/webhooks/webhooks-overview" target="_blank"&gt;Webhooks API Overview&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Hope this helps to clarify!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 04:16:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/288392#M26698</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-08-28T04:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get recently deleted contacts/companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/329498#M31866</link>
      <description>&lt;P&gt;Hi Wendy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first time asking for help here in the community, thanks in advance for sharing your knowledge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help here - I'm using the Webhooks API and my app is subscribing to the Contact Delete / Contact Privacy Delete events, so I do get a JSON with some data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This JSON has the OBJECT ID, which brings me the contact's data, including e-mail address (which is the unique key for a 3rd party system that must find and exclude the same user that was deleted in Hubspot, unfortunately I`m not able to use the ObjectId to match and delete the customer).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, that JSON does not give me email address (see JSON example below), and I could not find a method in the API where I can at least use the vid/objectId to get to the whole customer property (including email). It seems all properties become unaccessible once the customer record is deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="css-k008qs"&gt;&lt;DIV class="css-1y0i5ac"&gt;&lt;P&gt;RAW BODY PROVIDED&lt;BR /&gt;objectId&lt;/P&gt;&lt;P&gt;changeFlag&lt;/P&gt;&lt;P&gt;changeSource&lt;/P&gt;&lt;P&gt;eventId&lt;/P&gt;&lt;P&gt;subscriptionId&lt;/P&gt;&lt;P&gt;portalId&lt;/P&gt;&lt;P&gt;appId&lt;/P&gt;&lt;P&gt;occurredAt&lt;/P&gt;&lt;P&gt;subscriptionType&lt;/P&gt;&lt;P&gt;attemptNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HEADERS AVAILABLE&lt;BR /&gt;headers__http_host&lt;BR /&gt;headers__http_x_request_id&lt;BR /&gt;headers__http_x_real_ip&lt;BR /&gt;headers__http_x_forwarded_for&lt;BR /&gt;headers__http_x_forwarded_host&lt;BR /&gt;headers__http_x_forwarded_port&lt;BR /&gt;headers__http_x_forwarded_proto&lt;BR /&gt;headers__http_x_scheme&lt;BR /&gt;headers__http_x_original_forwarded_for&lt;BR /&gt;headers__content_length&lt;BR /&gt;headers__http_accept_encoding&lt;BR /&gt;headers__content_type&lt;BR /&gt;headers__http_user_agent&lt;BR /&gt;headers__http_x_hubspot_signature&lt;BR /&gt;headers__http_x_hubspot_signature_version&lt;BR /&gt;headers__http_x_hubspot_timeout_millis&lt;BR /&gt;id&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Marcio&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 13:42:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/329498#M31866</guid>
      <dc:creator>debriefconsult</dc:creator>
      <dc:date>2020-04-03T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get recently deleted contacts/companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/329705#M31886</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/22399"&gt;@debriefconsult&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing such a detailed use case!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, it is not possible to retrieve deleted contacts using contact object ID via HubSpot API. The best workaround now is for your team to store both the contact email and object ID in possibly a database and implement a search function to get contact's email based on the contact object ID.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 03:42:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/329705#M31886</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-04-06T03:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get recently deleted contacts/companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/329733#M31899</link>
      <description>&lt;P&gt;Thanks Wendy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for both clarifying on the API limitation (so I do not get exhausted trying to make it work) and for sharing this idea which has worked so fine. I had not thought of that 'shadowing' approach which will work for propagating both deletion and unsubscribe events.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcio&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 06:09:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/329733#M31899</guid>
      <dc:creator>debriefconsult</dc:creator>
      <dc:date>2020-04-06T06:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get recently deleted contacts/companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/995453#M74498</link>
      <description>&lt;P&gt;Hi Wendy, can you please share API for&lt;SPAN&gt;&amp;nbsp;getting recently deleted contacts/companies? Hope it was solved and option is available now&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 08:50:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-recently-deleted-contacts-companies/m-p/995453#M74498</guid>
      <dc:creator>Anastasiia_V</dc:creator>
      <dc:date>2024-06-21T08:50:58Z</dc:date>
    </item>
  </channel>
</rss>

