<?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 Creating ticket using API to count as activity. in Tickets &amp; Conversations</title>
    <link>https://community.hubspot.com/t5/Tickets-Conversations/Creating-ticket-using-API-to-count-as-activity/m-p/1185023#M8693</link>
    <description>&lt;P&gt;Our web application has a feedback button which we then use to call the Hubspot API to create a Hubspot Ticket. The ticket has the proper Company and Contact Associations and the Ticket Description is filled out appropriately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem we are trying to solve is having the initial creation of the ticket count as an Activity so that our Support team can respond directly to the customer with all of the context of the original ticket description. As of now, the ticket is being created without an Activity so our Support team has to click on the new email button, copy and paste the ticket description, then send the email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By having the initial creation of the ticket count as an Activity like when a customer emails us directly, we would be able to respond with the ticket context.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 22:12:52 GMT</pubDate>
    <dc:creator>avomd</dc:creator>
    <dc:date>2025-08-04T22:12:52Z</dc:date>
    <item>
      <title>Creating ticket using API to count as activity.</title>
      <link>https://community.hubspot.com/t5/Tickets-Conversations/Creating-ticket-using-API-to-count-as-activity/m-p/1185023#M8693</link>
      <description>&lt;P&gt;Our web application has a feedback button which we then use to call the Hubspot API to create a Hubspot Ticket. The ticket has the proper Company and Contact Associations and the Ticket Description is filled out appropriately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem we are trying to solve is having the initial creation of the ticket count as an Activity so that our Support team can respond directly to the customer with all of the context of the original ticket description. As of now, the ticket is being created without an Activity so our Support team has to click on the new email button, copy and paste the ticket description, then send the email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By having the initial creation of the ticket count as an Activity like when a customer emails us directly, we would be able to respond with the ticket context.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 22:12:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tickets-Conversations/Creating-ticket-using-API-to-count-as-activity/m-p/1185023#M8693</guid>
      <dc:creator>avomd</dc:creator>
      <dc:date>2025-08-04T22:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating ticket using API to count as activity.</title>
      <link>https://community.hubspot.com/t5/Tickets-Conversations/Creating-ticket-using-API-to-count-as-activity/m-p/1185033#M8694</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/961435"&gt;@avomd&lt;/a&gt;&lt;/SPAN&gt; - thanks so much for posting in the Community!&lt;BR /&gt;&lt;BR /&gt;In search of best next steps, I'd like to tag in some of our API experts to see if they have any helpful insight! &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/9259"&gt;@Mike_Eastwood&lt;/a&gt;&lt;/SPAN&gt;, &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/2450"&gt;@tjoyce&lt;/a&gt;&lt;/SPAN&gt;, &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/426475"&gt;@coldrickjack&lt;/a&gt;&lt;/SPAN&gt; - any ideas on how &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/961435"&gt;@avomd&lt;/a&gt;&lt;/SPAN&gt; may be able to pull the initial creation of tickets created via API as an Activity on the record itself?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 22:56:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tickets-Conversations/Creating-ticket-using-API-to-count-as-activity/m-p/1185033#M8694</guid>
      <dc:creator>STierney</dc:creator>
      <dc:date>2025-08-04T22:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating ticket using API to count as activity.</title>
      <link>https://community.hubspot.com/t5/Tickets-Conversations/Creating-ticket-using-API-to-count-as-activity/m-p/1185091#M8695</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/961435"&gt;@avomd&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to help here, Generally, you could use the Hubspot API to not just create the ticket but also log the engagement (email activity).&amp;nbsp;Immediately after ticket creation, call the Engagements API (CRM v3 Objects for emails, notes, or custom engagements).&amp;nbsp;This logs an activity in the contact timeline with your original ticket description.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AI generated example below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;POST /crm/v3/objects/tickets
{
  "properties": {
    "subject": "Feedback from Web App",
    "hs_pipeline": "0",
    "hs_pipeline_stage": "1",
    "content": "User feedback description here..."
  },
  "associations": [
    { "to": { "id": "CONTACT_ID" }, "types": [{ "associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 16 }] },
    { "to": { "id": "COMPANY_ID" }, "types": [{ "associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 1 }] }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;POST /crm/v3/objects/emails
{
  "properties": {
    "hs_email_subject": "Feedback Received",
    "hs_email_text": "User feedback description here..."
  },
  "associations": [
    { "to": { "id": "CONTACT_ID" }, "types": [{ "associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 2 }] },
    { "to": { "id": "TICKET_ID" }, "types": [{ "associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 19 }] }
  ]
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that this would log an email to the record but it would not automatically send an email to the associated records. This email would simply be logged to the contact, company, ticket record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to send an email, you would use the&amp;nbsp;CRM v3 emails endpoint with the send action, again, AI generated example below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;POST https://api.hubapi.com/crm/v3/objects/emails

{
  "properties": {
    "hs_email_subject": "Your Feedback Ticket",
    "hs_email_text": "Hi {{contact.firstname}},\n\nThank you for your feedback. Here are the details:\n\n{{ticket.description}}\n\nWe will get back to you shortly.",
    "hs_email_direction": "OUTGOING",
    "hs_email_status": "SENT",
    "hs_email_to_email": "customer@example.com",
    "hs_email_from_email": "support@yourcompany.com"
  },
  "associations": [
    { "to": { "id": "CONTACT_ID" }, "types": [{ "associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 2 }] },
    { "to": { "id": "TICKET_ID" }, "types": [{ "associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 19 }] }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that&amp;nbsp;the hs_email_from_email matches a connected mailbox in your HubSpot portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 04:02:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tickets-Conversations/Creating-ticket-using-API-to-count-as-activity/m-p/1185091#M8695</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2025-08-05T04:02:27Z</dc:date>
    </item>
  </channel>
</rss>

