<?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 Contact List Opt-out form on website in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/896788#M69891</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can anybody help me figure out how I can add an opt-out form on a website the uses the Hubspot API to remove contacts from a list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I have the contact's email and the ILS List ID, am I able to do it with just those two pieces of data?&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Or do I have to use the email to get the record ID? If so, how do I do that?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 23:09:23 GMT</pubDate>
    <dc:creator>eibach-cv</dc:creator>
    <dc:date>2023-12-20T23:09:23Z</dc:date>
    <item>
      <title>Contact List Opt-out form on website</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/896788#M69891</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can anybody help me figure out how I can add an opt-out form on a website the uses the Hubspot API to remove contacts from a list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I have the contact's email and the ILS List ID, am I able to do it with just those two pieces of data?&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Or do I have to use the email to get the record ID? If so, how do I do that?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 23:09:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/896788#M69891</guid>
      <dc:creator>eibach-cv</dc:creator>
      <dc:date>2023-12-20T23:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Contact List Opt-out form on website</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/897225#M69916</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148664"&gt;@eibach-cv&lt;/a&gt;&amp;nbsp;I hope you are getting ready to rest up soon before the start of 2024 &lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will be an “it depends” kind of answer.&lt;/P&gt;
&lt;P&gt;Are you working with an &lt;STRONG&gt;Active&lt;/STRONG&gt; or &lt;STRONG&gt;Static&lt;/STRONG&gt; List? For an Active List, contacts are automatically added or removed based on set criteria, and manual adjustments aren't possible through the API. If your list is Static, then you can add or remove contacts manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a Static List, you'll need the contact's email to find their contact record ID. Here's how you can do it:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use the endpoint — Get a contact by email address&lt;/LI&gt;
&lt;LI&gt;Grab the ID from the response&lt;/LI&gt;
&lt;LI&gt;Use the endpoint — Remove an existing contact from a list&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If it's an Active (Dynamic) list, you could look at adding a hidden property to your opt-out form. And include the `true` value for this property in your Active List to include or exclude contacts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this use case, I don't have an all-in-one solution. It will either require multiple calls or some form of using properties or workflows to update a value that includes or excludes a contact from your list(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps get you moving forward! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 18:23:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/897225#M69916</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-12-21T18:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Contact List Opt-out form on website</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/897299#M69924</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a static list. Are the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Get a contact by email address&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Remove an existing contact from a list&lt;/STRONG&gt; endpoints you referenced from the CRM API? I did a google search for them and the legacy docs are the only thing that come up.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 20:36:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/897299#M69924</guid>
      <dc:creator>eibach-cv</dc:creator>
      <dc:date>2023-12-21T20:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Contact List Opt-out form on website</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/897315#M69925</link>
      <description>&lt;P&gt;Oh, goodness. I failed to add those links. Yes, that's correct for both endpoints. There's a beta for the new Lists API, but it may not be suitable because of its beta status.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the links for both and to the beta:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/contacts/get_contact_by_email" target="_blank" rel="noopener"&gt;Get a contact by email address&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/lists/remove_contact_from_list" target="_blank"&gt;Remove an existing contact from a list&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/lists" target="_blank" rel="noopener"&gt;Lists (beta)&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The legacy endpoints are stable and supported unless explicitly flagged as&amp;nbsp;&lt;EM&gt;to be depreciated&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;depreciated&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My suggestion is to subscribe to the &lt;A href="https://developers.hubspot.com/changelog" target="_blank" rel="noopener"&gt;HubSpot Developer Changelog&lt;/A&gt; as it is the primary source for updates, betas, or breaking changes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun building! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 21:29:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-List-Opt-out-form-on-website/m-p/897315#M69925</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-12-21T21:29:19Z</dc:date>
    </item>
  </channel>
</rss>

