<?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 all emails for a ticket in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829723#M66192</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/610045"&gt;@JSixsmith&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can include a parameter "associations=emails" and include it when retrieving the ticket via the &lt;A href="https://developers.hubspot.com/docs/api/crm/tickets" target="_blank" rel="noopener"&gt;Tickets API&lt;/A&gt;. For instance if I had a ticket with ID "1606885847". The request would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/tickets/1606885847?associations=emails&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This returns information about the ticket including an "associations" object which contains the IDs of all of the emails linked to the ticket. Example of this below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"associations": {
        "emails": {
            "results": [
                {
                    "id": "19317934782",
                    "type": "ticket_to_email"
                },
                {
                    "id": "19317934801",
                    "type": "ticket_to_email"
                },
                {
                    "id": "19318230762",
                    "type": "ticket_to_email"
                }
            ]
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then use the IDs above to retrieve additional information about the emails. This is done using the &lt;A href="https://developers.hubspot.com/docs/api/crm/email" target="_blank" rel="noopener"&gt;Engagements API&lt;/A&gt;. So taking email with ID "19317934782" the request would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/emails/19317934782?properties=hs_email_text
RESPONSE:
{
    "id": "19317934782",
    "properties": {
        "hs_createdate": "2023-08-04T09:07:28.284Z",
        "hs_email_text": "email 2",
        "hs_lastmodifieddate": "2023-08-04T09:07:28.284Z",
        "hs_object_id": "19317934782"
    },
    "createdAt": "2023-08-04T09:07:28.284Z",
    "updatedAt": "2023-08-04T09:07:28.284Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also do this in batches if you are dealing with a larger number of emails.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 09:14:45 GMT</pubDate>
    <dc:creator>coldrickjack</dc:creator>
    <dc:date>2023-08-04T09:14:45Z</dc:date>
    <item>
      <title>Get all emails for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829716#M66190</link>
      <description>&lt;P&gt;Hi, is there any endpoint or way to get a list of emails linked to a ticket? Like the one in the GUI? Like the screenshot below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-08-04 at 09.57.45 am.png" style="width: 796px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/96235iB44BCCBA34A7F5E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-08-04 at 09.57.45 am.png" alt="Screen Shot 2023-08-04 at 09.57.45 am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 09:00:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829716#M66190</guid>
      <dc:creator>JSixsmith</dc:creator>
      <dc:date>2023-08-04T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get all emails for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829723#M66192</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/610045"&gt;@JSixsmith&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can include a parameter "associations=emails" and include it when retrieving the ticket via the &lt;A href="https://developers.hubspot.com/docs/api/crm/tickets" target="_blank" rel="noopener"&gt;Tickets API&lt;/A&gt;. For instance if I had a ticket with ID "1606885847". The request would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/tickets/1606885847?associations=emails&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This returns information about the ticket including an "associations" object which contains the IDs of all of the emails linked to the ticket. Example of this below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"associations": {
        "emails": {
            "results": [
                {
                    "id": "19317934782",
                    "type": "ticket_to_email"
                },
                {
                    "id": "19317934801",
                    "type": "ticket_to_email"
                },
                {
                    "id": "19318230762",
                    "type": "ticket_to_email"
                }
            ]
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then use the IDs above to retrieve additional information about the emails. This is done using the &lt;A href="https://developers.hubspot.com/docs/api/crm/email" target="_blank" rel="noopener"&gt;Engagements API&lt;/A&gt;. So taking email with ID "19317934782" the request would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/crm/v3/objects/emails/19317934782?properties=hs_email_text
RESPONSE:
{
    "id": "19317934782",
    "properties": {
        "hs_createdate": "2023-08-04T09:07:28.284Z",
        "hs_email_text": "email 2",
        "hs_lastmodifieddate": "2023-08-04T09:07:28.284Z",
        "hs_object_id": "19317934782"
    },
    "createdAt": "2023-08-04T09:07:28.284Z",
    "updatedAt": "2023-08-04T09:07:28.284Z",
    "archived": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also do this in batches if you are dealing with a larger number of emails.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 09:14:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829723#M66192</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-04T09:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get all emails for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829732#M66193</link>
      <description>&lt;P&gt;Ah amazing, I was confused on the docs but thats so simple!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you!!!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 09:36:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829732#M66193</guid>
      <dc:creator>JSixsmith</dc:creator>
      <dc:date>2023-08-04T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get all emails for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829741#M66194</link>
      <description>&lt;P&gt;No problem at all!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 09:40:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829741#M66194</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-04T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get all emails for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/1166492#M82709</link>
      <description>&lt;P&gt;Question, is there a way to retrieve all of the emails that have been created since a specific date?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We have are implementing a process where we update a 3rd party app's record with the information from the emails recieved in HubSpot. We have a custom field on the HubSpot ticket record that stores when we last processed the emails. We then want to retrieve all of the emails recieved since that point in time and process them. We then update the above mentioned date with the date of the created date of the last received record. Given that there can be numerous back and forth emails. Having to retrieve each email, one at a time, and compare them to the last processing date, can become very inefficient.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 22:18:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/1166492#M82709</guid>
      <dc:creator>KChanning</dc:creator>
      <dc:date>2025-06-18T22:18:30Z</dc:date>
    </item>
  </channel>
</rss>

