<?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 /contacts/v1/lists/:list_id/add seems broken in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/contacts-v1-lists-list-id-add-seems-broken/m-p/1107303#M80220</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using&amp;nbsp;/contacts/v1/lists/:list_id/add (&lt;A href="https://developers.hubspot.com/docs/reference/api/crm/lists/v1-contacts#add-existing-contacts-to-a-list" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/reference/api/crm/lists/v1-contacts#add-existing-contacts-to-a-list&lt;/A&gt;) for years without a problem, passing emails as contact identifiers.&lt;BR /&gt;&lt;BR /&gt;Today, I noticed I was getting 404 responses for lists that exist.&lt;BR /&gt;&lt;BR /&gt;Is there an issue with this API endpoint at the moment?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 12:49:55 GMT</pubDate>
    <dc:creator>raphink</dc:creator>
    <dc:date>2025-02-11T12:49:55Z</dc:date>
    <item>
      <title>/contacts/v1/lists/:list_id/add seems broken</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/contacts-v1-lists-list-id-add-seems-broken/m-p/1107303#M80220</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using&amp;nbsp;/contacts/v1/lists/:list_id/add (&lt;A href="https://developers.hubspot.com/docs/reference/api/crm/lists/v1-contacts#add-existing-contacts-to-a-list" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/reference/api/crm/lists/v1-contacts#add-existing-contacts-to-a-list&lt;/A&gt;) for years without a problem, passing emails as contact identifiers.&lt;BR /&gt;&lt;BR /&gt;Today, I noticed I was getting 404 responses for lists that exist.&lt;BR /&gt;&lt;BR /&gt;Is there an issue with this API endpoint at the moment?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 12:49:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/contacts-v1-lists-list-id-add-seems-broken/m-p/1107303#M80220</guid>
      <dc:creator>raphink</dc:creator>
      <dc:date>2025-02-11T12:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: /contacts/v1/lists/:list_id/add seems broken</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/contacts-v1-lists-list-id-add-seems-broken/m-p/1107691#M80269</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/898026"&gt;@raphink&lt;/a&gt;&lt;/SPAN&gt; I don't see anything on the status page. I see these v1 List endpoints are set for depreciation in a few months (May 30th, 2025) but nothing about them not working before that. Can you share an example request and response? I'd like to try to reproduce in Postman.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 22:10:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/contacts-v1-lists-list-id-add-seems-broken/m-p/1107691#M80269</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-02-11T22:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: /contacts/v1/lists/:list_id/add seems broken</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/contacts-v1-lists-list-id-add-seems-broken/m-p/1107841#M80275</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;My code looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;func (c *Client) AddContactToList(email string, listId string) error {
	url := fmt.Sprintf("https://api.hubapi.com/contacts/v1/lists/%s/add", listId)
	params := map[string]interface{}{
		"emails": []string{
			email,
		},
	}
	reqBody, err := json.Marshal(params)
	if err != nil {
		return fmt.Errorf("Failed to marshal filter: %v", err)
	}

	req, err := http.NewRequest("POST", url, bytes.NewBuffer(reqBody))
	if err != nil {
		return err
	}

	req.Header.Set("Content-Type", "application/json")

	resp, err := c.HTTPClient.Do(req)
	if err != nil {
		return err
	}

	defer resp.Body.Close()

	// Check the response status code
	if resp.StatusCode != http.StatusAccepted &amp;amp;&amp;amp; resp.StatusCode != http.StatusOK {
		return fmt.Errorf("API request failed with status code: %d", resp.StatusCode)
	}

	return nil
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has worked great for months, but now is returning with a 404, using lists that actually exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this API is going to be deprecated, what is the replacement for it?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 09:11:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/contacts-v1-lists-list-id-add-seems-broken/m-p/1107841#M80275</guid>
      <dc:creator>raphink</dc:creator>
      <dc:date>2025-02-12T09:11:02Z</dc:date>
    </item>
  </channel>
</rss>

