<?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: Respond to a ticket conversation via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/487142#M46336</link>
    <description>&lt;P&gt;Same issue here.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 07:48:53 GMT</pubDate>
    <dc:creator>AGarcia8</dc:creator>
    <dc:date>2021-08-30T07:48:53Z</dc:date>
    <item>
      <title>Respond to a ticket conversation via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435303#M43134</link>
      <description>&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;I'm working with the Hubspot API to create a website where you can create tickets using forms and see their engagements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Send ticket form via javascript form.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2021-05-07 a las 14.57.02.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/42242i449AACC317CCA631/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de pantalla 2021-05-07 a las 14.57.02.png" alt="Captura de pantalla 2021-05-07 a las 14.57.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Read tickets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request POST 'https://api.hubapi.com/crm/v3/objects/tickets/search?hapikey=demo' \
--header 'content-type: application/json' \
--header 'Cookie: __cfduid=defdf8f9d3ce28c171639a737aecf19991617882670' \
--data-raw '{
  "filterGroups": [
    {
      "filters": [
        {
            "propertyName": "associations.contact",
            "operator": "EQ",
            "value": "344930714"
        }        
      ]
    }
  ],
  "sorts": [
      {
        "propertyName": "createdate",
        "direction": "DESCENDING"
      }
  ],
  "properties": [
  ],
  "limit": 10,
  "after": 0
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Read engagements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request GET 'https://api.hubapi.com/engagements/v1/engagements/13073367213?hapikey=demo' \
--header 'Cookie: __cfduid=defdf8f9d3ce28c171639a737aecf19991617882670'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything that is answered from the hubspot CRM in the conversation appears on my website correctly.&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="Captura de pantalla 2021-05-07 a las 15.00.19.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/42243i88B8980B89D6D251/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de pantalla 2021-05-07 a las 15.00.19.png" alt="Captura de pantalla 2021-05-07 a las 15.00.19.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And if you reply by mail (gmail) to this message, it appears correctly as engagement and as a response in the conversation&lt;/SPAN&gt;&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="Captura de pantalla 2021-05-07 a las 15.01.18.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/42244iF460E999B50939FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de pantalla 2021-05-07 a las 15.01.18.png" alt="Captura de pantalla 2021-05-07 a las 15.01.18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;What I want now is to respond to this conversation via API as if it were answered by email and that it appeared in the Hubspot CRM conversation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;1) Create engagement vía API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --location --request POST 'https://api.hubapi.com/engagements/v1/engagements?hapikey=demo' \
--header 'Content-Type: application/json' \
--header 'Cookie: __cfduid=defdf8f9d3ce28c171639a737aecf19991617882670' \
--data-raw '{
    "engagement": {
        "active": true,
        "ownerId": 70505496,
        "type": "EMAIL",
        "timestamp": 1620297687888,
        "source": "CONVERSATIONS"
    },
    "associations": {
        "contactIds": [101],
        "companyIds": [ ],
        "dealIds": [ ],
        "ownerIds": [ ],
		"ticketIds":[400047780 ]
    },
    "attachments": [
    ],
    "metadata": {
        "from": {
        "email": "email@domain.com",
        "firstName": "First",
        "lastName": "Last"
        },
        "to": [
        {
            "raw": "support@19678522.hubspot-inbox.com",
            "email": "support@19678522.hubspot-inbox.com"
        }
        ],
        "cc": [],
        "bcc": [],
        "subject": "Re: Prueba de texto",
        "html": "&amp;lt;div&amp;gt;aaaa&amp;lt;/div&amp;gt;",
        "text": "aaaaa"
    }
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this endpoint, the engagement is correctly created but it does NOT appear as a response in the Husbpot CRM chain (CONVERSATIONS).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2021-05-07 a las 15.04.24.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/42247iBB300AB4844F5563/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de pantalla 2021-05-07 a las 15.04.24.png" alt="Captura de pantalla 2021-05-07 a las 15.04.24.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;However, it does appear in the Emails and Activity sections of the ticket.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2021-05-07 a las 15.07.12.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/42250iB68AEE9B8EF955D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de pantalla 2021-05-07 a las 15.07.12.png" alt="Captura de pantalla 2021-05-07 a las 15.07.12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way to create an engagement as a response to the conversation chain as if it were answered by Email and it appeared in the Conversations section of the Hubspot CRM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and sorry for my english!&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 13:11:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435303#M43134</guid>
      <dc:creator>EstebanCastro</dc:creator>
      <dc:date>2021-05-07T13:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Respond to a ticket conversation via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435419#M43147</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634"&gt;@tominal&lt;/a&gt; , do you have any advice here?&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 16:11:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435419#M43147</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-05-07T16:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Respond to a ticket conversation via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435494#M43156</link>
      <description>&lt;P&gt;This is an interesting one. While I don't think it's possible through the API, that doesn't mean it's not impossible to keep it in that single engagement.&lt;BR /&gt;&lt;BR /&gt;You could &lt;A href="https://legacydocs.hubspot.com/docs/methods/engagements/update_engagement-patch" target="_blank" rel="noopener"&gt;update&lt;/A&gt;&amp;nbsp;( to append to ) that engagement's HTML body with the reply's HTML to make it look like a thread. Does that make sense? It sounds better in my head but it may not accomplish the exact look of what Esteban is looking for.&lt;BR /&gt;&lt;BR /&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 19:29:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435494#M43156</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2021-05-07T19:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Respond to a ticket conversation via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435727#M43174</link>
      <description>&lt;P&gt;Thanks for the response and ideas.&lt;/P&gt;&lt;P&gt;I think they serve me for what I want to do.&lt;/P&gt;&lt;P&gt;Hope you keep improving the API. Nice job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 09:26:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/435727#M43174</guid>
      <dc:creator>EstebanCastro</dc:creator>
      <dc:date>2021-05-10T09:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Respond to a ticket conversation via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/487142#M46336</link>
      <description>&lt;P&gt;Same issue here.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 07:48:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Respond-to-a-ticket-conversation-via-API/m-p/487142#M46336</guid>
      <dc:creator>AGarcia8</dc:creator>
      <dc:date>2021-08-30T07:48:53Z</dc:date>
    </item>
  </channel>
</rss>

