APIs & Integrations

sonnyjordan
Participant

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Hi,

Is it possible to download via hubspot API teh file that is uploaded in Company’s Profile in Hubspot?

Regards,
Sonny

0 Upvotes
1 Accepted solution
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Hi all,

Files that are attached to contact/company/deal records are set to be hidden, which means their public URLs will return 403 errors. Un-hiding the files will allow those URLs to work, but that’s generally not recommended since it allows these files to be publicly visible.

View solution in original post

0 Upvotes
7 Replies 7
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Hi @kremenetskyi,

I’m sorry for the confusion; after further investigation, I’ve discovered that my previous statement was incorrect. There isn’t currently any method to modify an existing file’s metadata, and therefore it’s not possible to un-hide a hidden file (I’ve corrected my previous response). The only way to access these files is through the HubSpot UI.

0 Upvotes
silicium
Member

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Thank you for your answer.
Probably in the future this option will be available.
I hope Hubspot API is still developing and more features will be done.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Hi @kremenetskyi,

You can access the file via the HubSpot UI. Hidden files are not meant to be accessible outside of the UI, so I would recommend only working with these files via the UI wherever possible.

*Edit: Corrected; it isn’t possible to un-hide files

0 Upvotes
silicium
Member

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Thanks!

Is it possible to un-hide attached file via API?
Couldn’t find this option…

0 Upvotes
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Hi all,

Files that are attached to contact/company/deal records are set to be hidden, which means their public URLs will return 403 errors. Un-hiding the files will allow those URLs to work, but that’s generally not recommended since it allows these files to be publicly visible.

0 Upvotes
silicium
Member

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

OK, what way is possible to download file like this (I mean hidden)?

0 Upvotes
silicium
Member

Download via Hubspot API the File that is uploaded in Company Profile of Hubspot

SOLVE

Hello

It is interesting for me as well.
Can somebody help us?

According to this docs: https://developers.hubspot.com/docs/methods/files/get_files_file_id
we can get JSON with information about file, also here are some links like url or alt_url,
but when I try to go this link I get 403 Forbidden.

Thanks

0 Upvotes