<?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: Creating tickets from the API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-tickets-from-the-API/m-p/1105896#M80188</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/516641"&gt;@michaelrandrup&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. I just ran a quick test in my dev portal and the Ticket appears in my Help Desk workspace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to think of other ways this might have happened.&amp;nbsp;Have you double-checked the pipeline ID?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what I did:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Went to Settings &amp;gt; Help Desk &amp;gt; Ticket Defaults and verified the Pipeline &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.46.53@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137926i972612B979786C47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.46.53@2x.png" alt="CleanShot 2025-02-07 at 14.46.53@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Went to Settings &amp;gt; Objects &amp;gt; Tickets &amp;gt; Pipelines to verify the Pipeline ID (internal value)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.45.21@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137925i990DF5138895C431/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.45.21@2x.png" alt="CleanShot 2025-02-07 at 14.45.21@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Made a request to create a new ticket (associated with a Contact)&amp;nbsp;&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;POST https://api.hubapi.com/crm/v3/objects/tickets​&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;{
    "properties": {
        "hs_pipeline": "0",
        "hs_pipeline_stage": "1",
        "hs_ticket_priority": "HIGH",
        "subject": "API testerrr"
    },
    "associations": [
        {
            "to": {
                "id": 901
            },
            "types": [
                {
                    "associationCategory": "HUBSPOT_DEFINED",
                    "associationTypeId": 16
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Verified Ticket exists&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.47.54@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137927i01A9EEC368E6AEC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.47.54@2x.png" alt="CleanShot 2025-02-07 at 14.47.54@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Verified Ticket is showing in Help Desk Workspace&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.35.26@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137924i5F74FF0675679CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.35.26@2x.png" alt="CleanShot 2025-02-07 at 14.35.26@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Can you share an example request along with the internal values for your Pipeline? This may help other community members with troubleshooting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the additional information! — Jaycee&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 21:52:31 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2025-02-07T21:52:31Z</dc:date>
    <item>
      <title>Creating tickets from the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-tickets-from-the-API/m-p/1105434#M80171</link>
      <description>&lt;P&gt;We need to submit tickets from our software to HubSpot. We already have a private App setup with multiple integrations.&lt;/P&gt;&lt;P&gt;We have tried two methods without luck:&lt;/P&gt;&lt;P&gt;1. Using the Ticket API&lt;BR /&gt;Here we can create both tickets, associations, engagements, etc. but the tickets will not show in the "Help Desk" workspace, which is the place our support team works.&lt;BR /&gt;&lt;BR /&gt;2. Using the old Legacy Form Submission API's&lt;BR /&gt;Tried various approaches without luck. The V3 Legacy API cannot create form submissions with ticket fields, only contact and company fields. and it cannot add files. The V2 API is the same. The V4 API doesn't seem to have a "Submit Form data" endpoint.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So my question is: What is an actual working approach, if we need to submit tickets into the Help Desk Workspace automatically on behalf of customers (including file attachments).&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated thanks!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 08:42:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-tickets-from-the-API/m-p/1105434#M80171</guid>
      <dc:creator>michaelrandrup</dc:creator>
      <dc:date>2025-02-07T08:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating tickets from the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-tickets-from-the-API/m-p/1105896#M80188</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/516641"&gt;@michaelrandrup&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. I just ran a quick test in my dev portal and the Ticket appears in my Help Desk workspace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to think of other ways this might have happened.&amp;nbsp;Have you double-checked the pipeline ID?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what I did:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Went to Settings &amp;gt; Help Desk &amp;gt; Ticket Defaults and verified the Pipeline &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.46.53@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137926i972612B979786C47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.46.53@2x.png" alt="CleanShot 2025-02-07 at 14.46.53@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Went to Settings &amp;gt; Objects &amp;gt; Tickets &amp;gt; Pipelines to verify the Pipeline ID (internal value)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.45.21@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137925i990DF5138895C431/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.45.21@2x.png" alt="CleanShot 2025-02-07 at 14.45.21@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Made a request to create a new ticket (associated with a Contact)&amp;nbsp;&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;POST https://api.hubapi.com/crm/v3/objects/tickets​&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;{
    "properties": {
        "hs_pipeline": "0",
        "hs_pipeline_stage": "1",
        "hs_ticket_priority": "HIGH",
        "subject": "API testerrr"
    },
    "associations": [
        {
            "to": {
                "id": 901
            },
            "types": [
                {
                    "associationCategory": "HUBSPOT_DEFINED",
                    "associationTypeId": 16
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Verified Ticket exists&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.47.54@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137927i01A9EEC368E6AEC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.47.54@2x.png" alt="CleanShot 2025-02-07 at 14.47.54@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Verified Ticket is showing in Help Desk Workspace&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2025-02-07 at 14.35.26@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/137924i5F74FF0675679CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2025-02-07 at 14.35.26@2x.png" alt="CleanShot 2025-02-07 at 14.35.26@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Can you share an example request along with the internal values for your Pipeline? This may help other community members with troubleshooting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the additional information! — Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 21:52:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-tickets-from-the-API/m-p/1105896#M80188</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-02-07T21:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating tickets from the API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-tickets-from-the-API/m-p/1106310#M80196</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/516641"&gt;@michaelrandrup&lt;/a&gt;&amp;nbsp;- I offer up my approach to integrations of this sort in the hope that it may be helpoful to you.&lt;/P&gt;
&lt;P&gt;- Focus on the forms submissions API to trigger the ticket creation action. I tend to feel that a direct ticket API integration exposes too many internal pipeline and status value dependencies to the external system&lt;/P&gt;
&lt;P&gt;- Use only Contact and Company properties in the form setup. This can include a file or files&lt;/P&gt;
&lt;P&gt;- Use the form submission to trigger a workflow that assembles the ticket data from the submitted properties on the Contact record.&lt;/P&gt;
&lt;P&gt;- The ticket creation workflow can establish the right pipeline for the ticket (I often see cases where there are multiple options for handling), set up its status and stage, and assignment ownership on whatever basis makes sense. Submitted files from the form can be copied to specific file properties on the ticket record to support the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Helpesk does have a particular quirk that I hope will be fixed soon in that it insists on conversation threads on a ticket to display properly. More basic ticket handling does not have this limitation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is helpful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2025 16:08:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-tickets-from-the-API/m-p/1106310#M80196</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2025-02-09T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

