# Ability to access hidden files over the API

**URL:** <https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317>\
**Category:** HubSpot Ideas\
**Tags:** integrations\
**Created:** [September 18, 2019, 11:53pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317 "2019-09-18T23:53:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![markkofman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/markkofman/32/24823_2.png) [@markkofman](https://community.hubspot.com/u/markkofman)\
**Post date:** [September 18, 2019, 11:53pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/1 "2019-09-18T23:53:15Z")

</div>

At the moment there is no way to access hidden files over the API. Meaning that almost any files that are related to engagements are not accessible to the users.

Also, there is no export capability for that. Basically this makes it totally impossible to access your own data in HubSpot account.

---

<div class="post-metadata">

**Author:** ![lucasverra](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lucasverra/32/47945_2.png) [@lucasverra](https://community.hubspot.com/u/lucasverra)\
**Post date:** [May 7, 2020, 9:03am UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/2 "2020-05-07T09:03:48Z")

</div>

Exactly same issue. I need to access my own files via an APi , like any proper CRM would allow.

This lack of access to my files restrict the usage of api based automations. It would begreatly appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![cimar007](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cimar007/32/68963_2.png) [@cimar007](https://community.hubspot.com/u/cimar007)\
**Post date:** [June 12, 2020, 10:01pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/3 "2020-06-12T22:01:57Z")

</div>

Same problem here. I do not understand why this is not available.

I am able to retrieve the attachment info (id, cloud key, etc) but I can not access the file.

It makes no sense.

Hubspot please help, add this endpoint.

Make our lives easier.

Thanks

---

<div class="post-metadata">

**Author:** ![Kamil\_KK](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kamil_kk/32/11153_2.png) [@Kamil\_KK](https://community.hubspot.com/u/Kamil_KK)\
**Post date:** [April 12, 2021, 7:26am UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/4 "2021-04-12T07:26:19Z")

</div>

Hello, I am facing the same issue.

As I was investigating there is a type of solution:

You can get signed URL

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Freference%2Fapi%2Flibrary%2Ffiles%2Fv3-legacy)**

Apparently this works for me while I am trying to access ticket attachments.

The issue here is that there is no possibility to change file flag from

**“hidden”: true** , and this would be a great help. Please upwote this proposal - [https://community.hubspot.com/t5/HubSpot-Ideas/Have-the-access-to-change-a-file-from-quot-hidden-quot-true-to/idi-p/405067](https://community.hubspot.com/t5/HubSpot-Ideas/Have-the-access-to-change-a-file-from-quot-hidden-quot-true-to/idi-p/405067)

We are able to change access properties of the files that are not ‘hidden’ by default:

[https://legacydocs.hubspot.com/docs/methods/files/update\_file\_access](https://legacydocs.hubspot.com/docs/methods/files/update_file_access)

PUBLIC\_INDEXABLE

PUBLIC\_NOT\_INDEXABLE

PRIVATE

However, once you encounter file hidden by default the ‘access’ property is set like so:

“access”: “HIDDEN\_PRIVATE”

and there is no possibility to nicely ‘shuffle’ / update ‘access’ properties - I have tried minion times -

{

```
"taskId": "7d9cb1cc-3394-3b43-b11d-3e753deeed9b",

"message": "Set-Accessibility task successfully enqueued",

"portalId": XXXXXXXX

```

}

despite of that the ‘access’ property stays unchanged - “access”: “HIDDEN\_PRIVATE”

Therefore what we really need here is a possibility to change the ‘hidden’ flag of the file true/false.

Still, it is possible to access hidden files via API call (at least in case of tickets associations - engagements → NOTE and note points to attachment).

I am not able to say if it is possible with other ‘hidden’ files from deal etc. Please feel free to try it out.

This solution also requires calling for every file because a signed URL gives access to one “HIDDEN\_PRIVATE” file at a time.

I hope this will help.

---

<div class="post-metadata">

**Author:** ![sockclub](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sockclub/32/63860_2.png) [@sockclub](https://community.hubspot.com/u/sockclub)\
**Post date:** [July 1, 2021, 8:26pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/5 "2021-07-01T20:26:25Z")

</div>

Experiencing the same issue. It seems strange that we can’t access the actual files from the API.

---

<div class="post-metadata">

**Author:** ![DWilsonBE](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwilsonbe/32/44503_2.png) [@DWilsonBE](https://community.hubspot.com/u/DWilsonBE)\
**Post date:** [February 9, 2023, 12:33pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/6 "2023-02-09T12:33:06Z")

</div>

Getting access to attached files would be extemely useful for our automation needs. And could also be very useful way to purge attachments for privacy when we archive old deals.

---

<div class="post-metadata">

**Author:** ![MarcD](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/marcd/32/31639_2.png) [@MarcD](https://community.hubspot.com/u/MarcD)\
**Post date:** [March 14, 2023, 1:14pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/7 "2023-03-14T13:14:09Z")

</div>

It seems that enabling the scope “files\_ui\_hidden.read” has solved the issue for me using the v3 API, as mentioned in the CMS API here (Changes in V3 section): [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/files/files)

One needs to go to the private app settings (or OAuth if you’re using it?) and enable this scope for the given private app. I’m still testing for full details but I expect to be able to use a combination of this scope to get metadata and the signed url to get the file itself.

---

<div class="post-metadata">

**Author:** ![MHirth](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@MHirth](https://community.hubspot.com/u/MHirth)\
**Post date:** [April 25, 2023, 3:09pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/8 "2023-04-25T15:09:51Z")

</div>

Hello @MarcD is it working? Thanks for your answer

---

<div class="post-metadata">

**Author:** ![JMadrone](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JMadrone](https://community.hubspot.com/u/JMadrone)\
**Post date:** [June 12, 2023, 2:24pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/9 "2023-06-12T14:24:49Z")

</div>

Not totally sure of what your use case is for downloading the files, but this app will allow you to grab the contents of a file uploaded through a form into a file property and parse the contents out of it: [HubSpot Marketplace](https://ecosystem.hubspot.com/marketplace/apps/marketing/data-management/go-file-text-parser-1545207)

And this one is a good one for managing file attachments and associations between objects: [HubSpot Marketplace](https://ecosystem.hubspot.com/marketplace/apps/marketing/data-management/file-attachment-associations-1549105)

---

<div class="post-metadata">

**Author:** ![NickMc](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@NickMc](https://community.hubspot.com/u/NickMc)\
**Post date:** [April 11, 2024, 5:54pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/10 "2024-04-11T17:54:32Z")

</div>

In the V3 Files API, to access any PRIVATE\_HIDDEN files you have to have the `files.ui_hidden.read` scope (on top of the regular `files` scope) and use

`/files/v3/files/FILE_ID` and `/files/v3/files/FILE_ID/signed-url` endpoints.

You CANNOT use the search endpoint. The search endpoint does not search PRIVATE\_HIDDEN files. But I would love this.

You also CANNOT change the `access` of a PRIVATE\_HIDDEN file using the “update file properties” PATCH (/files/v3/files).

---

<div class="post-metadata">

**Author:** ![MichaelMcGaha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/michaelmcgaha/32/100482_2.png) [@MichaelMcGaha](https://community.hubspot.com/u/MichaelMcGaha)\
**Post date:** [May 21, 2024, 9:38pm UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/11 "2024-05-21T21:38:17Z")

</div>

Hi all, I work on the files team and can shed some light here.

The public service: `/files/v3/files/*` endpoints, do not have access to hidden files, it actually reads out of a search index where hidden files are not indexed, the same index that files dashboard uses. This was a decision we made because hidden files were used as internal system files that other apps used for their app-specific hosting needs historically. Due to this fact, it could be dangerous for a user to update or delete them as it could damage the experience in the owning app. The files app was created for a CMS-only use case originally, but as it has grown and been adopted by other hubs, we recognize the need for customers to have access to their files and for there to be a unified files experience across apps and hubs. We have plans to index and expose crm attachments in the aforementioned search index the near future. This will hopefully improve the crm-records experience and give integrators access to them through the public api.

P.S. Hidden files are not accessible through the public service but should be able to be accessed via the legacy internal apis that are are exposed to ExternalAuth:  
`filemanager/api/v2/files/{fileId}/singed-url-redirect`  
`filemanager/api/v2/files/{fileId}/signed-url`

---

<div class="post-metadata">

**Author:** ![KConsulting2](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@KConsulting2](https://community.hubspot.com/u/KConsulting2)\
**Post date:** [September 13, 2024, 4:46am UTC](https://community.hubspot.com/t/ability-to-access-hidden-files-over-the-api/16317/12 "2024-09-13T04:46:51Z")

</div>

Hi Michael, is it possible to configure Hubspot to NOT mark a file as “HIDDEN\_PRIVATE” when added as an attachment?

Our client requires the functionality to use files/v3/files/search to list all new files attached since a certain date.
