<?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: threadId in Inbox and messages API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/679509#M55780</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/432602"&gt;@TraceTheStar&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; This one is a bit of an adventure for sure. Fortunately, everything we need is in the &lt;A href="https://developers.hubspot.com/docs/api/conversations/conversations" target="_blank" rel="noopener"&gt;Conversations inbox and messages APIs (BETA).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Our clue was down the page a bit&amp;nbsp;&lt;EM&gt;“&lt;SPAN&gt;When you make a successful request, &lt;STRONG&gt;the response will include the thread ID&lt;/STRONG&gt;, which you can use to retrieve, update, or create a new message in a thread.&lt;/SPAN&gt;” &lt;/EM&gt;&lt;A href="https://developers.hubspot.com/docs/api/conversations/conversations#threads-messages" target="_blank" rel="noopener"&gt;Retrieve threads.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My quick test is likely different than you, but I think the underlying approach will get what you are after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Request 1 — Get threadId&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET /conversations/v3/conversations/threads&lt;/LI-CODE&gt;
&lt;P&gt;The response includes a property called id which is actually the threadId in this case&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="threadId.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/72695iA20961C360E091DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="threadId.png" alt="threadId.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My request&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --request GET \
  --url https://api.hubapi.com/conversations/v3/conversations/threads \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;
&lt;P&gt;My response&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HTTP 200

{
  "results": [
    {
      "id": "3016120935",
      "createdAt": "2022-08-11T23:26:58.904Z",
      "status": "OPEN",
      "latestMessageTimestamp": "2022-08-11T23:28:36.188Z",
      "latestMessageSentTimestamp": "2022-08-11T23:28:36.188Z",
      "latestMessageReceivedTimestamp": "2022-08-11T23:26:58.969Z",
      "assignedTo": "A-10233975",
      "spam": false,
      "inboxId": "124212669",
      "associatedContactId": "551",
      "archived": false
    },
    {
      "id": "3016291208",
      "createdAt": "2022-08-11T23:23:48.172Z",
      "status": "OPEN",
      "latestMessageTimestamp": "2022-08-11T23:23:54.489Z",
      "latestMessageReceivedTimestamp": "2022-08-11T23:23:54.489Z",
      "spam": false,
      "inboxId": "124212669",
      "associatedContactId": "1",
      "archived": false
    },
    {
      "id": "3016313742",
      "createdAt": "2022-08-11T23:24:36.472Z",
      "closedAt": "2022-08-11T23:25:46.568Z",
      "status": "CLOSED",
      "latestMessageTimestamp": "2022-08-11T23:24:36.689Z",
      "latestMessageReceivedTimestamp": "2022-08-11T23:24:36.689Z",
      "assignedTo": "A-10233975",
      "spam": false,
      "inboxId": "124212669",
      "associatedContactId": "1",
      "archived": false
    }
  ],
  "paging": {
    "next": {
      "after": "MzAxNjMxMzc0Mg%3D%3D",
      "link": "https://api.hubapi.com/conversations/v3/conversations/threads?hs_static_app=endpoint-reference-ui&amp;amp;hs_static_app_version=1.974&amp;amp;after=MzAxNjMxMzc0Mg%3D%3D"
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Request 2 — Get messageId&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;We can take the value for “id”: “3016120935” and get the associated messages from this endpoint:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET /conversations/v3/conversations/threads/{threadId}/messages&lt;/LI-CODE&gt;
&lt;P&gt;My request&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --request GET \
  --url https://api.hubapi.com/conversations/v3/conversations/threads/3016120935/messages \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;
&lt;P&gt;My response&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HTTP 200

{
  "results": [
    {
      "id": "d3295feca7814dc0806ae1c96636d705",
      "createdAt": "2022-08-11T23:28:36.188Z",
      "updatedAt": "2022-08-11T23:28:36.188Z",
      "createdBy": "A-10233975",
      "client": {
        "clientType": "HUBSPOT"
      },
      "senders": [
        {
          "actorId": "A-10233975"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "this is a test",
      "richText": "&amp;lt;div style=\"text-align: left\"&amp;gt;this is a test&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "SENT"
      },
      "direction": "OUTGOING",
      "type": "MESSAGE"
    },
    {
      "id": "56b8f95f373149afa3cffaf6dddf1825",
      "createdAt": "2022-08-11T23:28:10.344Z",
      "updatedAt": "2022-08-11T23:28:10.344Z",
      "createdBy": "A-10233975",
      "client": {
        "clientType": "HUBSPOT"
      },
      "senders": [
        {
          "actorId": "A-10233975"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "hello",
      "richText": "&amp;lt;div style=\"text-align: left\"&amp;gt;hello&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "SENT"
      },
      "direction": "OUTGOING",
      "type": "MESSAGE"
    },
    {
      "id": "4a41191f2a0d406ebb208e06f42559b3",
      "createdAt": "2022-08-11T23:27:57.101Z",
      "updatedAt": "2022-08-11T23:27:57.101Z",
      "createdBy": "A-10233975",
      "client": {
        "clientType": "HUBSPOT"
      },
      "senders": [
        {
          "actorId": "A-10233975"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "hellp",
      "richText": "&amp;lt;div style=\"text-align: left\"&amp;gt;hellp&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "SENT"
      },
      "direction": "OUTGOING",
      "type": "MESSAGE"
    },
    {
      "id": "75dd0ade-60ca-4952-a49b-fc8fa94f7f92",
      "createdAt": "2022-08-11T23:26:59.661Z",
      "createdBy": "S-hubspot",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [],
      "recipients": [],
      "archived": false,
      "assignedTo": "A-10233975",
      "type": "ASSIGNMENT"
    },
    {
      "id": "1c83f851-4814-4ce5-93b2-ef17b54ac339",
      "createdAt": "2022-08-11T23:26:59.621Z",
      "createdBy": "S-hubspot",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [],
      "recipients": [],
      "archived": false,
      "newStatus": "OPEN",
      "type": "THREAD_STATUS_CHANGE"
    },
    {
      "id": "7c5bbeb0801f455c95b3e6fd85cc7d3d",
      "createdAt": "2022-08-11T23:26:58.969Z",
      "updatedAt": "2022-08-11T23:26:58.969Z",
      "createdBy": "V-551",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [
        {
          "actorId": "V-551"
        }
      ],
      "recipients": [],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "Hello",
      "richText": "&amp;lt;div&amp;gt;Hello&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "RECEIVED"
      },
      "direction": "INCOMING",
      "type": "MESSAGE"
    },
    {
      "id": "e5a4bc4685d74194becd81f8fdc03748",
      "createdAt": "2022-08-11T23:26:58.967Z",
      "createdBy": "S-hubspot",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [
        {
          "actorId": "S-hubspot"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "Got any questions? I'm happy to help.",
      "type": "WELCOME_MESSAGE"
    }
  ],
  "paging": {
    "next": {
      "after": "MTY2MDI2MDQxODk2Ny0w",
      "link": "https://api.hubapi.com/conversations/v3/conversations/threads/3016120935/messages?hs_static_app=endpoint-reference-ui&amp;amp;hs_static_app_version=1.974&amp;amp;after=MTY2MDI2MDQxODk2Ny0w"
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially, you'll need one call to get the threadIds and a second to get the messageIds. With that information, you can follow the documentation to &lt;A href="https://developers.hubspot.com/docs/api/conversations/conversations#retrieve-messages" target="_blank" rel="noopener"&gt;retrieve messages&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun coding! – Jaycee&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 23:55:10 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2022-08-11T23:55:10Z</dc:date>
    <item>
      <title>threadId in Inbox and messages API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/678991#M55744</link>
      <description>&lt;P&gt;Hi, fellow Developers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to export all the messages inside my Inbox threads and since I don't see any quick button for exporting, I assume that we don't have this feature in the normal hubspot menu. So as a result, after scouring the internet for a while. I found the documentation for accessing the Inbox API. However, I got stuck on the section where I need have the threadId in order to get into the messages inside my thread. So,&amp;nbsp;I would like to know where I can find this `threadId`. I cannot seem to find it as I have tried all the other IDs from response of the /conversations/thread url API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;TraceTheStar&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 08:29:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/678991#M55744</guid>
      <dc:creator>TraceTheStar</dc:creator>
      <dc:date>2022-08-11T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: threadId in Inbox and messages API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/679509#M55780</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/432602"&gt;@TraceTheStar&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; This one is a bit of an adventure for sure. Fortunately, everything we need is in the &lt;A href="https://developers.hubspot.com/docs/api/conversations/conversations" target="_blank" rel="noopener"&gt;Conversations inbox and messages APIs (BETA).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Our clue was down the page a bit&amp;nbsp;&lt;EM&gt;“&lt;SPAN&gt;When you make a successful request, &lt;STRONG&gt;the response will include the thread ID&lt;/STRONG&gt;, which you can use to retrieve, update, or create a new message in a thread.&lt;/SPAN&gt;” &lt;/EM&gt;&lt;A href="https://developers.hubspot.com/docs/api/conversations/conversations#threads-messages" target="_blank" rel="noopener"&gt;Retrieve threads.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My quick test is likely different than you, but I think the underlying approach will get what you are after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Request 1 — Get threadId&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET /conversations/v3/conversations/threads&lt;/LI-CODE&gt;
&lt;P&gt;The response includes a property called id which is actually the threadId in this case&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="threadId.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/72695iA20961C360E091DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="threadId.png" alt="threadId.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My request&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --request GET \
  --url https://api.hubapi.com/conversations/v3/conversations/threads \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;
&lt;P&gt;My response&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HTTP 200

{
  "results": [
    {
      "id": "3016120935",
      "createdAt": "2022-08-11T23:26:58.904Z",
      "status": "OPEN",
      "latestMessageTimestamp": "2022-08-11T23:28:36.188Z",
      "latestMessageSentTimestamp": "2022-08-11T23:28:36.188Z",
      "latestMessageReceivedTimestamp": "2022-08-11T23:26:58.969Z",
      "assignedTo": "A-10233975",
      "spam": false,
      "inboxId": "124212669",
      "associatedContactId": "551",
      "archived": false
    },
    {
      "id": "3016291208",
      "createdAt": "2022-08-11T23:23:48.172Z",
      "status": "OPEN",
      "latestMessageTimestamp": "2022-08-11T23:23:54.489Z",
      "latestMessageReceivedTimestamp": "2022-08-11T23:23:54.489Z",
      "spam": false,
      "inboxId": "124212669",
      "associatedContactId": "1",
      "archived": false
    },
    {
      "id": "3016313742",
      "createdAt": "2022-08-11T23:24:36.472Z",
      "closedAt": "2022-08-11T23:25:46.568Z",
      "status": "CLOSED",
      "latestMessageTimestamp": "2022-08-11T23:24:36.689Z",
      "latestMessageReceivedTimestamp": "2022-08-11T23:24:36.689Z",
      "assignedTo": "A-10233975",
      "spam": false,
      "inboxId": "124212669",
      "associatedContactId": "1",
      "archived": false
    }
  ],
  "paging": {
    "next": {
      "after": "MzAxNjMxMzc0Mg%3D%3D",
      "link": "https://api.hubapi.com/conversations/v3/conversations/threads?hs_static_app=endpoint-reference-ui&amp;amp;hs_static_app_version=1.974&amp;amp;after=MzAxNjMxMzc0Mg%3D%3D"
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Request 2 — Get messageId&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;We can take the value for “id”: “3016120935” and get the associated messages from this endpoint:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET /conversations/v3/conversations/threads/{threadId}/messages&lt;/LI-CODE&gt;
&lt;P&gt;My request&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --request GET \
  --url https://api.hubapi.com/conversations/v3/conversations/threads/3016120935/messages \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;
&lt;P&gt;My response&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HTTP 200

{
  "results": [
    {
      "id": "d3295feca7814dc0806ae1c96636d705",
      "createdAt": "2022-08-11T23:28:36.188Z",
      "updatedAt": "2022-08-11T23:28:36.188Z",
      "createdBy": "A-10233975",
      "client": {
        "clientType": "HUBSPOT"
      },
      "senders": [
        {
          "actorId": "A-10233975"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "this is a test",
      "richText": "&amp;lt;div style=\"text-align: left\"&amp;gt;this is a test&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "SENT"
      },
      "direction": "OUTGOING",
      "type": "MESSAGE"
    },
    {
      "id": "56b8f95f373149afa3cffaf6dddf1825",
      "createdAt": "2022-08-11T23:28:10.344Z",
      "updatedAt": "2022-08-11T23:28:10.344Z",
      "createdBy": "A-10233975",
      "client": {
        "clientType": "HUBSPOT"
      },
      "senders": [
        {
          "actorId": "A-10233975"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "hello",
      "richText": "&amp;lt;div style=\"text-align: left\"&amp;gt;hello&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "SENT"
      },
      "direction": "OUTGOING",
      "type": "MESSAGE"
    },
    {
      "id": "4a41191f2a0d406ebb208e06f42559b3",
      "createdAt": "2022-08-11T23:27:57.101Z",
      "updatedAt": "2022-08-11T23:27:57.101Z",
      "createdBy": "A-10233975",
      "client": {
        "clientType": "HUBSPOT"
      },
      "senders": [
        {
          "actorId": "A-10233975"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "hellp",
      "richText": "&amp;lt;div style=\"text-align: left\"&amp;gt;hellp&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "SENT"
      },
      "direction": "OUTGOING",
      "type": "MESSAGE"
    },
    {
      "id": "75dd0ade-60ca-4952-a49b-fc8fa94f7f92",
      "createdAt": "2022-08-11T23:26:59.661Z",
      "createdBy": "S-hubspot",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [],
      "recipients": [],
      "archived": false,
      "assignedTo": "A-10233975",
      "type": "ASSIGNMENT"
    },
    {
      "id": "1c83f851-4814-4ce5-93b2-ef17b54ac339",
      "createdAt": "2022-08-11T23:26:59.621Z",
      "createdBy": "S-hubspot",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [],
      "recipients": [],
      "archived": false,
      "newStatus": "OPEN",
      "type": "THREAD_STATUS_CHANGE"
    },
    {
      "id": "7c5bbeb0801f455c95b3e6fd85cc7d3d",
      "createdAt": "2022-08-11T23:26:58.969Z",
      "updatedAt": "2022-08-11T23:26:58.969Z",
      "createdBy": "V-551",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [
        {
          "actorId": "V-551"
        }
      ],
      "recipients": [],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "Hello",
      "richText": "&amp;lt;div&amp;gt;Hello&amp;lt;/div&amp;gt;",
      "attachments": [],
      "truncationStatus": "NOT_TRUNCATED",
      "status": {
        "statusType": "RECEIVED"
      },
      "direction": "INCOMING",
      "type": "MESSAGE"
    },
    {
      "id": "e5a4bc4685d74194becd81f8fdc03748",
      "createdAt": "2022-08-11T23:26:58.967Z",
      "createdBy": "S-hubspot",
      "client": {
        "clientType": "SYSTEM"
      },
      "senders": [
        {
          "actorId": "S-hubspot"
        }
      ],
      "recipients": [
        {
          "actorId": "V-551",
          "deliveryIdentifiers": []
        }
      ],
      "channelId": "1000",
      "channelAccountId": "79569651",
      "archived": false,
      "text": "Got any questions? I'm happy to help.",
      "type": "WELCOME_MESSAGE"
    }
  ],
  "paging": {
    "next": {
      "after": "MTY2MDI2MDQxODk2Ny0w",
      "link": "https://api.hubapi.com/conversations/v3/conversations/threads/3016120935/messages?hs_static_app=endpoint-reference-ui&amp;amp;hs_static_app_version=1.974&amp;amp;after=MTY2MDI2MDQxODk2Ny0w"
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially, you'll need one call to get the threadIds and a second to get the messageIds. With that information, you can follow the documentation to &lt;A href="https://developers.hubspot.com/docs/api/conversations/conversations#retrieve-messages" target="_blank" rel="noopener"&gt;retrieve messages&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun coding! – Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 23:55:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/679509#M55780</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-08-11T23:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: threadId in Inbox and messages API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/679545#M55783</link>
      <description>&lt;P&gt;Hi Jaycee!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for replying very quickly. I though that there should have been a variable with the name `threadId` in the response. I actually did use the `id` parameter that you state in your answer above, but I also included the '{}' symbols which made mine look like this `/{123456789}/ 🤦‍&lt;span class="lia-unicode-emoji" title=":female_sign:"&gt;♀️&lt;/span&gt;. So, fortunately I was very close to it, but unfortunately didn't think of taking the curved braces away &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;. Anyway, thank you very much! Really appreciate the fast response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;TraceTheStar&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 01:35:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/679545#M55783</guid>
      <dc:creator>TraceTheStar</dc:creator>
      <dc:date>2022-08-12T01:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: threadId in Inbox and messages API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/813979#M65321</link>
      <description>&lt;P&gt;Jaycee,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I get the Message ID from a thread, is there any way yet to associate that message to a deal? I tried using the Associations API, but it seems that the ID that gets returned for a given message on a thread is a GUID and the Associations API is expecting a number. It seems as if there is an Email ID and a Message ID that are different and not sure how they correlate.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 00:06:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/813979#M65321</guid>
      <dc:creator>JoshBodine</dc:creator>
      <dc:date>2023-06-30T00:06:38Z</dc:date>
    </item>
  </channel>
</rss>

