<?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: how to download attachments in ticket in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/322585#M31070</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119762"&gt;@olejekg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is currently not supported to set hidden file to false and not possible to access file with &lt;STRONG&gt;hidden: true&lt;/STRONG&gt;. As Derek mentioned here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;The &lt;STRONG&gt;hidden&lt;/STRONG&gt; flag is intended to make assets viewable only when accessed from an object record (i.e. from an &lt;STRONG&gt;app.hubspot.com/file-preview&lt;/STRONG&gt; URL).&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That said, I was able to locate a similar idea posted on our idea forum -&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/Ability-to-access-hidden-files-over-the-API/idi-p/292042" target="_blank"&gt;HubSpot Community - Ability to access hidden files over the API - HubSpot Community&lt;/A&gt; and if you haven't already, I'd recommend upvoting this idea. Hopefully this will gather more interest.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 01:22:24 GMT</pubDate>
    <dc:creator>WendyGoh</dc:creator>
    <dc:date>2020-02-28T01:22:24Z</dc:date>
    <item>
      <title>how to download attachments in ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321558#M30956</link>
      <description>&lt;P&gt;Hi! I can`t download attaches from tickets reply via api.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have file_id and use method Get curl '&lt;A href="http://api.hubapi.com/filemanager/api/v2/files/{file_id}?hapikey={api_key" target="_blank"&gt;http://api.hubapi.com/filemanager/api/v2/files/{file_id}?hapikey={api_key&lt;/A&gt;}'&lt;/P&gt;&lt;P&gt;In responce I have some url`s:&amp;nbsp;s3_url, friendly_url,&amp;nbsp;alt_url, url.&lt;/P&gt;&lt;P&gt;But any of that url`s does not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;s3_url gives me a 403 error&lt;/P&gt;&lt;P&gt;friendly_url, alt_url and url gives me a 404 error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get my attachments from ticket replies for other integration via hubspot-API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 11:40:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321558#M30956</guid>
      <dc:creator>olejekg</dc:creator>
      <dc:date>2020-02-25T11:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to download attachments in ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321852#M30986</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119762"&gt;@olejekg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe this issue is similar to what has been discussed on this dev forum thread -&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Get-attachments-on-a-company-contact-or-deal/td-p/232387" target="_blank"&gt;Solved: HubSpot Community - Get attachments on a company, contact, or deal - HubSpot Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The underlying issue here is that the file is set to "hidden:true" as such you wouldn't be able to accessed it via the public file URLs e.g.&amp;nbsp;&lt;A href="https://cdn2.hubspot.net/hubfs/712/image.png/image.png" target="_self"&gt;https://cdn2.hubspot.net/hubfs/712/image.png/image.png&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per what Isaac mentioned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;Per Derek's first response to &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/What-decides-if-a-COS-file-is-hidden-or-not-If-uploaded-to-CRM/m-p/226917" target="_self"&gt;this Community post&lt;/A&gt; as well as&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/96106"&gt;@SwivelDev&lt;/a&gt;'s response to &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Download-deal-attachement/m-p/272854/thread-id/24778#M24802" target="_self"&gt;this other Community post&lt;/A&gt;, files which are uploaded externally directly to a deal or contact will be hidden by default. &lt;BR /&gt;&lt;BR /&gt;At this time, it is &lt;EM&gt;not possible&lt;/EM&gt; to change a file from "hidden": true to "hidden": false, or vice versa, as indicated in &lt;A href="https://developers.hubspot.com/docs/methods/files/post_files" target="_self"&gt;this article&lt;/A&gt;. I am sorry if this comes as an unwelcome surprise. &lt;BR /&gt;&lt;BR /&gt;One way to prevent files from being hidden is to upload them to HubSpot's file manager before attaching them to an engagement. See &lt;A href="https://recordit.co/NyIj25JfcF" target="_self"&gt;this screencast&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That said, if the following:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Use&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/engagements/get_associated_engagements" target="_self" rel="nofollow noopener noreferrer"&gt;this Engagements API endpoint&lt;/A&gt;&amp;nbsp;to retrieve engagements on a CRM object, locate file IDs in various engagements'&amp;nbsp;&lt;CODE&gt;attachments&lt;/CODE&gt;&amp;nbsp;arrays, query&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/files/get_files_file_id" target="_self" rel="nofollow noopener noreferrer"&gt;this endpoint&lt;/A&gt;&amp;nbsp;with the file IDs, and find that the URLs in the&amp;nbsp;&lt;CODE&gt;url&lt;/CODE&gt;&amp;nbsp;fields led to&amp;nbsp;&lt;CODE&gt;404&lt;/CODE&gt;&amp;nbsp;error pages?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;isn't the steps you took, do you mind sharing with me more details on the steps you took? As well as the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. The HubSpot portal ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. The ticket ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. The file ID&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 03:13:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321852#M30986</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-02-26T03:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to download attachments in ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321885#M30993</link>
      <description>&lt;P&gt;&lt;SPAN&gt;1. The HubSpot portal ID:&amp;nbsp;7124303&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. The ticket ID:&amp;nbsp;95493202&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. The file ID:&amp;nbsp;26317599351&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 10:22:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321885#M30993</guid>
      <dc:creator>olejekg</dc:creator>
      <dc:date>2020-02-26T10:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to download attachments in ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321914#M30998</link>
      <description>&lt;P&gt;So Get Associated Engagements din not helps me. I posted the request to&amp;nbsp;curl '&lt;A href="https://api.hubapi.com/engagements/v1/engagements/associated/TICKET/95493202/paged?hapikey={API-key" target="_blank"&gt;https://api.hubapi.com/engagements/v1/engagements/associated/TICKET/95493202/paged?hapikey={API-key&lt;/A&gt;}' and get some information about my ticket including attachments id's but not working links or files content.&lt;/P&gt;&lt;P&gt;Get File metadata endpoint given me not working links because&amp;nbsp;&lt;SPAN&gt;"hidden:true". That is, there is no chance to get files on APA at all?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:26:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/321914#M30998</guid>
      <dc:creator>olejekg</dc:creator>
      <dc:date>2020-02-26T13:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to download attachments in ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/322101#M31019</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119762"&gt;@olejekg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing the details over!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On my end, I'm able to see that file id&amp;nbsp;26317599351 is set to hidden: true as such we wouldn't be able to access this file via the public file URL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moving forward, if you'd like to prevent file from being hidden: true, your team would need to upload the file into your &lt;A href="https://knowledge.hubspot.com/cos-general/upload-your-site-assets-to-file-manager" target="_self"&gt;file manager&lt;/A&gt; first before attaching it onto your HubSpot object (e.g. ticket/contact).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you'd need further clarification on this!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 01:46:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/322101#M31019</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-02-27T01:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to download attachments in ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/322170#M31044</link>
      <description>&lt;P&gt;Thank you for clarification. Is there any other way to get such files, maybe not through the links. Can you somehow retrieve the contents of a file that is hidden: true?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 09:51:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/322170#M31044</guid>
      <dc:creator>olejekg</dc:creator>
      <dc:date>2020-02-27T09:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to download attachments in ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/322585#M31070</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119762"&gt;@olejekg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is currently not supported to set hidden file to false and not possible to access file with &lt;STRONG&gt;hidden: true&lt;/STRONG&gt;. As Derek mentioned here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;The &lt;STRONG&gt;hidden&lt;/STRONG&gt; flag is intended to make assets viewable only when accessed from an object record (i.e. from an &lt;STRONG&gt;app.hubspot.com/file-preview&lt;/STRONG&gt; URL).&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That said, I was able to locate a similar idea posted on our idea forum -&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/Ability-to-access-hidden-files-over-the-API/idi-p/292042" target="_blank"&gt;HubSpot Community - Ability to access hidden files over the API - HubSpot Community&lt;/A&gt; and if you haven't already, I'd recommend upvoting this idea. Hopefully this will gather more interest.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 01:22:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/how-to-download-attachments-in-ticket/m-p/322585#M31070</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-02-28T01:22:24Z</dc:date>
    </item>
  </channel>
</rss>

