Hello, I am facing the same issue.
As I was investigating there is a type of solution:
You can get signed URL
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
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
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.