<?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 thread ID for a conversation from a ticket in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1022854#M75586</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/805952"&gt;@modernator&lt;/a&gt;&amp;nbsp;- In all of my work with conversations and inbound emails, I have found these two IDs to be effectively interachangable. Conversations are a poorly defined object in general and can't be extended with additional properties etc. As soon as they get associated with a Contact record, your best option is manioulation of properties in that record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best of luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 13:32:57 GMT</pubDate>
    <dc:creator>SteveHTM</dc:creator>
    <dc:date>2024-08-06T13:32:57Z</dc:date>
    <item>
      <title>Get thread ID for a conversation from a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1022835#M75585</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Ultimate goal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Create an internal comment in a conversation thread&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current status:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- I have a ticket ID, I can get a conversation ID, but I don't see how to use either of these to find a thread ID&lt;/P&gt;&lt;P&gt;- According to the docs &lt;A href="https://developers.hubspot.com/docs/api/conversations/conversations#add-comments-to-threads" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&amp;nbsp;I need a thread ID in order to send a message&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- I am triggering a function when a new email is received in our help desk&lt;/P&gt;&lt;P&gt;- I need the function to find the email and insert a message from the system inserting some info after the email in the thread&lt;/P&gt;&lt;P&gt;- I have already inserted some information into the ticket&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 13:13:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1022835#M75585</guid>
      <dc:creator>modernator</dc:creator>
      <dc:date>2024-08-06T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread ID for a conversation from a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1022854#M75586</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/805952"&gt;@modernator&lt;/a&gt;&amp;nbsp;- In all of my work with conversations and inbound emails, I have found these two IDs to be effectively interachangable. Conversations are a poorly defined object in general and can't be extended with additional properties etc. As soon as they get associated with a Contact record, your best option is manioulation of properties in that record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best of luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 13:32:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1022854#M75586</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-08-06T13:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread ID for a conversation from a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1022858#M75587</link>
      <description>&lt;P&gt;I see. Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, they are not &lt;STRONG&gt;that&lt;/STRONG&gt; interchangeable, because when I try to create a message using the above ID in the following POST request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;conversations/v3/conversations/threads/{threadId}/messages&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It fails with the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ConversationsResourceNotFoundError.THREAD_NOT_FOUND&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 13:37:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1022858#M75587</guid>
      <dc:creator>modernator</dc:creator>
      <dc:date>2024-08-06T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread ID for a conversation from a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1031385#M76087</link>
      <description>&lt;P&gt;I've found a solution! Just getting to writing it out later. Ping here if you need it urgently &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 09:28:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1031385#M76087</guid>
      <dc:creator>modernator</dc:creator>
      <dc:date>2024-08-23T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread ID for a conversation from a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1032099#M76131</link>
      <description>&lt;P&gt;Okay here we go! After trawling through the properties in various API responses I was able to find this undocumented property:&amp;nbsp;&lt;STRONG&gt;hs_conversations_originating_thread_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use it like this to get the conversation thread ID:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.hubapi.com/crm/v3/objects/tickets/{ticket_id}?properties=hs_conversations_originating_thread_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The resulting ID can then be used to POST a message to this conversation, for example, like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.hubapi.com/conversations/v3/conversations/threads/{conversation_thread_ID}/messages&lt;/LI-CODE&gt;&lt;P&gt;The documentation on the posting seems complete, so use that for creating the post object.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 07:16:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1032099#M76131</guid>
      <dc:creator>modernator</dc:creator>
      <dc:date>2024-08-26T07:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread ID for a conversation from a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1142428#M81853</link>
      <description>&lt;P&gt;Hello everyone, anyone knows how to do the opposite? getting a ticket from a conversation or thread?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 00:06:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1142428#M81853</guid>
      <dc:creator>JAlvarenga2</dc:creator>
      <dc:date>2025-04-30T00:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread ID for a conversation from a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1142450#M81855</link>
      <description>&lt;P&gt;I found a way to &lt;STRONG&gt;get the ticket from the correct thread_id &lt;/STRONG&gt;(which is the one received through the conversations webhook events)&lt;STRONG&gt;. Posting here if anyone needs it&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/805952"&gt;@modernator&lt;/a&gt;&amp;nbsp;&amp;nbsp;thanks btw, since you found this hidden property I was able to use it through another endpoint.&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;HERE IS THE SOLUTION:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;POST &lt;A href="https://api.hubapi.com/crm/v3/objects/tickets/search" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/tickets/search&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "hs_conversations_originating_thread_id",
          "operator": "EQ",
          "value": "9092943989"
        }
      ]
    }
  ],
  "properties": ["hs_object_id", "subject", "content"]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 02:15:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-thread-ID-for-a-conversation-from-a-ticket/m-p/1142450#M81855</guid>
      <dc:creator>JAlvarenga32</dc:creator>
      <dc:date>2025-04-30T02:15:09Z</dc:date>
    </item>
  </channel>
</rss>

