Discovering file properties for email attachments

Hoping there is someone who can shed some light on what I feel is a strange issue with the files API.

The situation is that I have a stream of incoming emails, picked up by a HubSpot inbox and truned into conversation objects. When I process teh conversation objects, I can discover any whether the email has any attached files. If it does, I can find the fileID and the associated signed URL.

Having the URL I can read thr file and parse its internal contents, etc. But the fileID value I obtain seems to be useless to discover file details via the

files/v3/files/{fileId}

or

/files/v3/files/{fileId}/signed-url

requests. Both variants always return a 404 code.

Does anyone have any ideas on a solution/work-around here?

Steve

Check out this post also on here that gives more info about this issue: https://community.hubspot.com/t5/CMS-Development/File-Property-really-inconsistent/td-p/987864
Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges.

Related, but not solved as far as I can see

I realize that, I was just hoping that may have given you a little more info on exactly why it was happening. I don’t know if there is a workaround, sorry.